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>");
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* 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');
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user