From b86f3c01f26d221fd010029dd02b331a477b76b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 2 Apr 2010 08:42:16 +0200 Subject: [PATCH] Merge single function for replication into other js. Separate js file with single function will only worse loading times. --- js/functions.js | 15 +++++++++++++++ js/mootools_common.js | 15 --------------- server_replication.php | 1 - 3 files changed, 15 insertions(+), 16 deletions(-) delete mode 100644 js/mootools_common.js 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';