bug #1477576 with rtl langs, navi links open in wrong frame
This commit is contained in:
18
index.php
18
index.php
@@ -128,13 +128,6 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
|||||||
var db = '<?php echo $GLOBALS['db']; ?>';
|
var db = '<?php echo $GLOBALS['db']; ?>';
|
||||||
var text_dir = '<?php echo $GLOBALS['text_dir']; ?>';
|
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']; ?>';
|
||||||
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
|
|
||||||
var frame_content = window.frames[1];
|
|
||||||
var frame_navigation = window.frames[0];
|
|
||||||
<?php } else { ?>
|
|
||||||
var frame_content = window.frames[0];
|
|
||||||
var frame_navigation = window.frames[1];
|
|
||||||
<?php } ?>
|
|
||||||
// ]]>
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
<script src="./js/querywindow.js" type="text/javascript" language="javascript">
|
<script src="./js/querywindow.js" type="text/javascript" language="javascript">
|
||||||
@@ -168,4 +161,15 @@ if ($GLOBALS['text_dir'] === 'ltr') {
|
|||||||
</body>
|
</body>
|
||||||
</noframes>
|
</noframes>
|
||||||
</frameset>
|
</frameset>
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
// <![CDATA[
|
||||||
|
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
|
||||||
|
var frame_content = window.frames[1];
|
||||||
|
var frame_navigation = window.frames[0];
|
||||||
|
<?php } else { ?>
|
||||||
|
var frame_content = window.frames[0];
|
||||||
|
var frame_navigation = window.frames[1];
|
||||||
|
<?php } ?>
|
||||||
|
// ]]>
|
||||||
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user