Move navigation frame to right for rtl languages.
This commit is contained in:
@@ -9,7 +9,8 @@ $Source$
|
|||||||
* libraries/config.default.php, Documentation.html: Transliterate invalid
|
* libraries/config.default.php, Documentation.html: Transliterate invalid
|
||||||
chars by default (RFE #1380255).
|
chars by default (RFE #1380255).
|
||||||
* left.php: Resurrect database link in light frame (bug #1373804).
|
* 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>
|
2005-12-13 Michal Čihař <michal@cihar.com>
|
||||||
* querywindow.php: Fix query history displaying (bug #1374639).
|
* querywindow.php: Fix query history displaying (bug #1374639).
|
||||||
|
@@ -132,6 +132,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
|||||||
var server = '<?php echo $GLOBALS['server']; ?>';
|
var server = '<?php echo $GLOBALS['server']; ?>';
|
||||||
var table = '<?php echo $GLOBALS['table']; ?>';
|
var table = '<?php echo $GLOBALS['table']; ?>';
|
||||||
var db = '<?php echo $GLOBALS['db']; ?>';
|
var db = '<?php echo $GLOBALS['db']; ?>';
|
||||||
|
var text_dir = '<?php echo $GLOBALS['text_dir']; ?>';
|
||||||
var pma_absolute_uri = '<?php echo $GLOBALS['cfg']['PmaAbsoluteUri']; ?>';
|
var pma_absolute_uri = '<?php echo $GLOBALS['cfg']['PmaAbsoluteUri']; ?>';
|
||||||
// ]]>
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
|
@@ -190,12 +190,20 @@ function refreshQuerywindow( url ) {
|
|||||||
function goTo( targeturl, target ) {
|
function goTo( targeturl, target ) {
|
||||||
//alert('goto');
|
//alert('goto');
|
||||||
if ( target == 'main' ) {
|
if ( target == 'main' ) {
|
||||||
|
if (text_dir == 'ltr') {
|
||||||
target = window.frames[1];
|
target = window.frames[1];
|
||||||
|
} else {
|
||||||
|
target = window.frames[0];
|
||||||
|
}
|
||||||
} else if ( target == 'query' ) {
|
} else if ( target == 'query' ) {
|
||||||
target = querywindow;
|
target = querywindow;
|
||||||
//return open_querywindow( targeturl );
|
//return open_querywindow( targeturl );
|
||||||
} else if ( ! target ) {
|
} else if ( ! target ) {
|
||||||
|
if (text_dir == 'ltr') {
|
||||||
target = window.frames[0];
|
target = window.frames[0];
|
||||||
|
} else {
|
||||||
|
target = window.frames[1];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( target ) {
|
if ( target ) {
|
||||||
|
Reference in New Issue
Block a user