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 text_dir = '<?php echo $GLOBALS['text_dir']; ?>';
|
||||
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 src="./js/querywindow.js" type="text/javascript" language="javascript">
|
||||
@@ -168,4 +161,15 @@ if ($GLOBALS['text_dir'] === 'ltr') {
|
||||
</body>
|
||||
</noframes>
|
||||
</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>
|
||||
|
Reference in New Issue
Block a user