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