From be9529faee9aa31f81811388af8a3b36b1480fe2 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Tue, 27 Sep 2011 14:48:38 -0500 Subject: [PATCH] Remove dead and leaky global functions --- .../frontend/public/javascript/gollum.js | 30 ++----------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/lib/gollum/frontend/public/javascript/gollum.js b/lib/gollum/frontend/public/javascript/gollum.js index c8de28a6..7205262f 100755 --- a/lib/gollum/frontend/public/javascript/gollum.js +++ b/lib/gollum/frontend/public/javascript/gollum.js @@ -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() { - -}