diff --git a/js/functions.js b/js/functions.js index 045e55aae..6605487e3 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1678,3 +1678,18 @@ $(document).ready(function(){ $(".sql").html(""+$oldText+""); }); }); + +/** + * 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'); + }); +} diff --git a/js/mootools_common.js b/js/mootools_common.js deleted file mode 100644 index 8de3bdb2a..000000000 --- a/js/mootools_common.js +++ /dev/null @@ -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'); - }); -} diff --git a/server_replication.php b/server_replication.php index 5dd4212a7..7397d76aa 100644 --- a/server_replication.php +++ b/server_replication.php @@ -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';