From 76bbf08a3dfc127a4ad60c04236edd49d7335ce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 14 Dec 2005 15:59:39 +0000 Subject: [PATCH] Move navigation frame to right for rtl languages. --- ChangeLog | 3 ++- index.php | 1 + js/querywindow.js | 12 ++++++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 026c730d4..292f00f25 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,7 +9,8 @@ $Source$ * libraries/config.default.php, Documentation.html: Transliterate invalid chars by default (RFE #1380255). * left.php: Resurrect database link in light frame (bug #1373804). - * index.php: Move navigation frame to right for rtl languages. + * index.php, js/querywindow.js: Move navigation frame to right for rtl + languages. 2005-12-13 Michal Čihař * querywindow.php: Fix query history displaying (bug #1374639). diff --git a/index.php b/index.php index 9675bb54d..5f4498814 100644 --- a/index.php +++ b/index.php @@ -132,6 +132,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']); var server = ''; var table = ''; var db = ''; + var text_dir = ''; var pma_absolute_uri = ''; // ]]> diff --git a/js/querywindow.js b/js/querywindow.js index 5c327fe2d..14da5fd23 100644 --- a/js/querywindow.js +++ b/js/querywindow.js @@ -190,12 +190,20 @@ function refreshQuerywindow( url ) { function goTo( targeturl, target ) { //alert('goto'); if ( target == 'main' ) { - target = window.frames[1]; + if (text_dir == 'ltr') { + target = window.frames[1]; + } else { + target = window.frames[0]; + } } else if ( target == 'query' ) { target = querywindow; //return open_querywindow( targeturl ); } else if ( ! target ) { - target = window.frames[0]; + if (text_dir == 'ltr') { + target = window.frames[0]; + } else { + target = window.frames[1]; + } } if ( target ) {