Merge single function for replication into other js.

Separate js file with single function will only worse loading times.
This commit is contained in:
Michal Čihař
2010-04-02 08:42:16 +02:00
parent b4eac4ea1b
commit b86f3c01f2
3 changed files with 15 additions and 16 deletions

View File

@@ -1678,3 +1678,18 @@ $(document).ready(function(){
$(".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');
});
}

View File

@@ -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');
});
}

View File

@@ -17,7 +17,6 @@ require_once './libraries/common.inc.php';
$GLOBALS['js_include'][] = 'server_privileges.js';
$GLOBALS['js_include'][] = 'functions.js';
$GLOBALS['js_include'][] = 'mootools-more.js';
$GLOBALS['js_include'][] = 'mootools_common.js';
require './libraries/server_common.inc.php';
require './libraries/replication.inc.php';