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() { - -}