Move navigation frame to right for rtl languages.

This commit is contained in:
Michal Čihař
2005-12-14 15:59:39 +00:00
parent c04775d955
commit 76bbf08a3d
3 changed files with 13 additions and 3 deletions

View File

@@ -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ř <michal@cihar.com>
* querywindow.php: Fix query history displaying (bug #1374639).

View File

@@ -132,6 +132,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
var server = '<?php echo $GLOBALS['server']; ?>';
var table = '<?php echo $GLOBALS['table']; ?>';
var db = '<?php echo $GLOBALS['db']; ?>';
var text_dir = '<?php echo $GLOBALS['text_dir']; ?>';
var pma_absolute_uri = '<?php echo $GLOBALS['cfg']['PmaAbsoluteUri']; ?>';
// ]]>
</script>

View File

@@ -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 ) {