lib/repsheet_visualizer/application/public/javascripts/application.js in repsheet_visualizer-0.1.0 vs lib/repsheet_visualizer/application/public/javascripts/application.js in repsheet_visualizer-0.1.1

- old
+ new

@@ -1,9 +1,13 @@ $(document).ready(function() { - // Bring up tablesorter and sort by people who have committed the - // most number of ModSecurity violations and who are not yet on - // the blacklist - $("#actors").tablesorter({sortList: [[2,0], [4,1]],widgets: ['zebra']}); + $("#suspects").tablesorter({sortList: [[2,1]],widgets: ['zebra']}); + $("#blacklisted").tablesorter({sortList: [[2,1]],widgets: ['zebra']}); + + $("#search-button").click(function() { + ip = $("#ip").val(); + if (ip === "") return; + window.location = "activity/" + ip; + }); }); function angle(d) { var a = (d.startAngle + d.endAngle) * 90 / Math.PI - 90; return a > 90 ? a - 180 : a;