Fix hiding of page content behind menu

We use jQuery to to the initializaton rather than directly overwriting
onload, which breaks other things,

Fixes #11820, #11812

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-01-05 08:35:57 +01:00
parent d6291c2f8f
commit cedc7a442c
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ phpMyAdmin - ChangeLog
- issue #11810 'Add to central columns' (per column button) does nothing
- issue #11727 SQL duplicate entry error trying to INSERT in designer_settings table
- issue #11798 Fix handling of databases with dot in a name
- issue #11820 Fix hiding of page content behind menu
4.5.3.1 (2015-12-25)
- issue #11774 Undefined offset 2

View File

@ -2,7 +2,7 @@
/**
* Conditionally included if framing is not allowed
*/
window.onload = function () {
$(function () {
if (self == top) {
var style_element = document.getElementById("cfs-style");
// check if style_element has already been removed
@ -13,4 +13,4 @@ window.onload = function () {
} else {
top.location = self.location;
}
}
});