Remove dead and leaky global functions
This commit is contained in:
@@ -41,7 +41,9 @@ $(document).ready(function() {
|
||||
|
||||
if ($('#wiki-wrapper').hasClass('history')) {
|
||||
$('#wiki-history td.checkbox input').each(function() {
|
||||
$(this).click(highlightChecked);
|
||||
$(this).click(function() {
|
||||
nodeSelector.checkNode($(this));
|
||||
});
|
||||
if ( $(this).is(':checked') ) {
|
||||
nodeSelector.checkNode($(this));
|
||||
}
|
||||
@@ -161,29 +163,3 @@ var nodeSelector = {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
function highlightOn() {
|
||||
$(this).parent().parent().animate({
|
||||
backgroundColor: '#ffffea',
|
||||
duration: 400
|
||||
});
|
||||
}
|
||||
|
||||
function highlightOff() {
|
||||
var color = '#ebf2f6';
|
||||
if ($(this).parent().parent().hasClass('alt-row')) {
|
||||
color = '#f3f7fa';
|
||||
}
|
||||
$(this).parent().parent().animate({
|
||||
backgroundColor: color,
|
||||
duration: 400
|
||||
});
|
||||
}
|
||||
|
||||
function highlightChecked() {
|
||||
nodeSelector.checkNode($(this));
|
||||
}
|
||||
|
||||
function initMathJax() {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user