diff --git a/index.php b/index.php index 1361b5fc5..34842ec71 100644 --- a/index.php +++ b/index.php @@ -131,12 +131,6 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']); var pma_text_default_tab = ''; var pma_text_left_default_tab = ''; - // Restore location from hash for bookmarks - - if (parent.location.hash != '') { - parent.location = 'index.php?' + parent.location.hash.substring(1); - } - // for content and navigation frames var frame_content = 0; @@ -165,6 +159,8 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']); }; // ]]> + + + + diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 9d406fd3c..11c5f8bd3 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -546,6 +546,7 @@ $_REQUEST['js_frame'] = PMA_ifSetOr($_REQUEST['js_frame'], ''); */ $GLOBALS['js_include'] = array(); $GLOBALS['js_include'][] = 'mootools.js'; +$GLOBALS['js_include'][] = 'helper.js'; /** * holds locale messages required by JavaScript function diff --git a/libraries/footer.inc.php b/libraries/footer.inc.php index 7005cc6a0..09f8d5cee 100644 --- a/libraries/footer.inc.php +++ b/libraries/footer.inc.php @@ -154,6 +154,7 @@ if (window.parent.frame_content) { //window.parent.frame_content.setAttribute('name', 'frame_content'); //window.parent.frame_content.setAttribute('id', 'frame_content'); } + //]]> ' . "\n"; $url_params['target'] = basename(PMA_getenv('SCRIPT_NAME')); - /* Store current location in hash part of URL to allow direct bookmarking */ - // Disabled for now, causes infinite loop with some Chrome based browsers - // Should be converted to use mootools and onload event - //echo ''; + ?> + +';