From 8f01fbd10c98800e872791ac80850482d8099262 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 22 Jul 2007 16:31:41 +0000 Subject: [PATCH] - bug #1746921 Left frame shrinks on db change, thanks to Juergen Wind --- ChangeLog | 1 + js/navigation.js | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8b1da0de8..776e1fe8af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -85,6 +85,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA + [lang] Russian update, thanks to Victor Volkov and the php-myadmin.ru users + [privileges] Support password hashing on the Edit Privileges interface - bug #1755339 Warn about rename dataase actually being copy/delete +- bug #1746921 Left frame shrinks on db change, thanks to Juergen Wind 2.10.3.0 (2007-07-20) diff --git a/js/navigation.js b/js/navigation.js index 52e29de474..44ffc44bd1 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -55,11 +55,13 @@ function PMA_callFunctionDelayed(myfunction, delay) */ function PMA_saveFrameSizeReal() { - pma_navi_width = document.getElementById('body_leftFrame').offsetWidth - //alert('from DOM: ' + typeof(pma_navi_width) + ' : ' + pma_navi_width); - if (pma_navi_width > 0) { + if (parent.text_dir == 'ltr') { + pma_navi_width = parseInt(parent.document.getElementById('mainFrameset').cols) + } else { + pma_navi_width = parent.document.getElementById('mainFrameset').cols.match(/\d+$/) + } + if ((pma_navi_width > 0) && (pma_navi_width != PMA_getCookie('pma_navi_width'))) { PMA_setCookie('pma_navi_width', pma_navi_width, expires); - //alert('framesize saved'); } } -- 2.11.4.GIT