Merge single function for replication into other js.
Separate js file with single function will only worse loading times.
This commit is contained in:
@@ -1678,3 +1678,18 @@ $(document).ready(function(){
|
|||||||
$(".sql").html("<span class=\"syntax\">"+$oldText+"</span>");
|
$(".sql").html("<span class=\"syntax\">"+$oldText+"</span>");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used for replication support
|
||||||
|
*
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
function divShowHideFunc(ahref, id) {
|
||||||
|
$(ahref).addEvent('click', function() {
|
||||||
|
if ($(id).getStyle('display')=="none")
|
||||||
|
$(id).tween('display', 'block');
|
||||||
|
else
|
||||||
|
$(id).tween('display', 'none');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@@ -1,15 +0,0 @@
|
|||||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
||||||
/**
|
|
||||||
* Used for replication support
|
|
||||||
*
|
|
||||||
* @version $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
function divShowHideFunc(ahref, id) {
|
|
||||||
$(ahref).addEvent('click', function() {
|
|
||||||
if ($(id).getStyle('display')=="none")
|
|
||||||
$(id).tween('display', 'block');
|
|
||||||
else
|
|
||||||
$(id).tween('display', 'none');
|
|
||||||
});
|
|
||||||
}
|
|
@@ -17,7 +17,6 @@ require_once './libraries/common.inc.php';
|
|||||||
$GLOBALS['js_include'][] = 'server_privileges.js';
|
$GLOBALS['js_include'][] = 'server_privileges.js';
|
||||||
$GLOBALS['js_include'][] = 'functions.js';
|
$GLOBALS['js_include'][] = 'functions.js';
|
||||||
$GLOBALS['js_include'][] = 'mootools-more.js';
|
$GLOBALS['js_include'][] = 'mootools-more.js';
|
||||||
$GLOBALS['js_include'][] = 'mootools_common.js';
|
|
||||||
|
|
||||||
require './libraries/server_common.inc.php';
|
require './libraries/server_common.inc.php';
|
||||||
require './libraries/replication.inc.php';
|
require './libraries/replication.inc.php';
|
||||||
|
Reference in New Issue
Block a user