From c9d023e3de903bdeab544ce3fda60dbbae9200a2 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 22 Mar 2008 21:41:20 +0000 Subject: [PATCH] bug #1918531 [compatibility] Navigation is not w3.org valid --- ChangeLog | 2 ++ navigation.php | 27 ++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cf251cced..a51d89424 100644 --- a/ChangeLog +++ b/ChangeLog @@ -63,6 +63,8 @@ danbarry thanks to Falk Nisius - klaf - bug #1812763 [Copy] Table copy when server is in ANSI_QUOTES sql_mode thanks to Tony Marston - tonymarston +- bug #1918531 [compatibility] Navigation isn't w3.org valid + thanks to Michael Keck - mkkeck 2.11.5.0 (2008-03-01) - bug #1862661 [GUI] Warn about rename deleting database diff --git a/navigation.php b/navigation.php index 5f971a7d9..c2053bebc 100644 --- a/navigation.php +++ b/navigation.php @@ -139,6 +139,31 @@ $pos = $_SESSION['userconf']['navi_limit_offset']; // b_minus.png'; var image_plus = 'b_plus.png'; + + // INIT PMA_setFrameSize + var onloadCnt = 0; + var onLoadHandler = window.onload; + var resizeHandler = window.onresize; + window.document.onresize = resizeHandler; + window.onload = function() { + if (onloadCnt == 0) { + if (typeof(onLoadHandler) == "function") { + onLoadHandler(); + } + if (typeof(PMA_setFrameSize) != 'undefined' && typeof(PMA_setFrameSize) == 'function') { + PMA_setFrameSize(); + } + onloadCnt++; + } + }; + window.onresize = function() { + if (typeof(resizeHandler) == "function") { + resizeHandler(); + } + if (typeof(PMA_saveFrameSize) != 'undefined' && typeof(PMA_saveFrameSize) == 'function') { + PMA_saveFrameSize(); + } + }; // ]]> - +