rename JavaScript file according it's use
This commit is contained in:
14
index.php
14
index.php
@@ -113,7 +113,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
|||||||
content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
|
content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// <![CDATA[
|
// <![CDATA[
|
||||||
// definitions used in querywindow.js
|
// definitions used in common.js
|
||||||
var common_query = '<?php echo PMA_escapeJsString(PMA_generate_common_url('', '', '&'));?>';
|
var common_query = '<?php echo PMA_escapeJsString(PMA_generate_common_url('', '', '&'));?>';
|
||||||
var opendb_url = '<?php echo PMA_escapeJsString($GLOBALS['cfg']['DefaultTabDatabase']); ?>';
|
var opendb_url = '<?php echo PMA_escapeJsString($GLOBALS['cfg']['DefaultTabDatabase']); ?>';
|
||||||
var safari_browser = <?php echo PMA_USR_BROWSER_AGENT == 'SAFARI' ? 'true' : 'false' ?>;
|
var safari_browser = <?php echo PMA_USR_BROWSER_AGENT == 'SAFARI' ? 'true' : 'false' ?>;
|
||||||
@@ -140,22 +140,22 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
|||||||
frame_navigation = window.frames[1];
|
frame_navigation = window.frames[1];
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
}
|
}
|
||||||
var onloadCnt = 0;
|
var onloadCnt = 0;
|
||||||
var onLoadHandler = window.onload;
|
var onLoadHandler = window.onload;
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
if (onloadCnt == 0) {
|
if (onloadCnt == 0) {
|
||||||
if (typeof(onLoadHandler) == "function") {
|
if (typeof(onLoadHandler) == "function") {
|
||||||
onLoadHandler();
|
onLoadHandler();
|
||||||
}
|
}
|
||||||
if (typeof(getFrames) != 'undefined' && typeof(getFrames) == 'function') {
|
if (typeof(getFrames) != 'undefined' && typeof(getFrames) == 'function') {
|
||||||
getFrames();
|
getFrames();
|
||||||
}
|
}
|
||||||
onloadCnt++;
|
onloadCnt++;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// ]]>
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
<script src="./js/querywindow.js" type="text/javascript"></script>
|
<script src="./js/common.js" type="text/javascript"></script>
|
||||||
</head>
|
</head>
|
||||||
<frameset cols="<?php
|
<frameset cols="<?php
|
||||||
if ($GLOBALS['text_dir'] === 'rtl') {
|
if ($GLOBALS['text_dir'] === 'rtl') {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||||
/**
|
/**
|
||||||
* functions used by and for querywindow
|
* common functions used for communicating between main, navigation and querywindow
|
||||||
*
|
*
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
Reference in New Issue
Block a user