From 2b6ae54466d9854bb8898e1136c125d40b2d3444 Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 28 Jan 2016 21:27:26 +0100 Subject: restyled prediction table --- public/javascripts/jquery.tablesorter.staticrow.min.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 public/javascripts/jquery.tablesorter.staticrow.min.js (limited to 'public/javascripts/jquery.tablesorter.staticrow.min.js') diff --git a/public/javascripts/jquery.tablesorter.staticrow.min.js b/public/javascripts/jquery.tablesorter.staticrow.min.js new file mode 100644 index 0000000..e3065ef --- /dev/null +++ b/public/javascripts/jquery.tablesorter.staticrow.min.js @@ -0,0 +1 @@ +$.tablesorter.addWidget({id:"staticRow",format:function(a){if(typeof $(a).data("hasSorted")=="undefined"){$(a).data("hasSorted",true);$("tbody .static",a).each(function(){$(this).data("tableindex",$(this).index())})}else{var b=true;while(b){b=false;$("tbody .static",a).each(function(){var c=$(this).data("tableindex");if(c!=$(this).index()){b=true;var d=$(this).detach();var e=$("tbody tr",a).length;if(c>=e){d.appendTo($("tbody",a))}else if(c==0){d.prependTo($("tbody",a))}else{d.insertBefore($("tbody tr:eq("+c+")",a))}}})}}}}) \ No newline at end of file -- cgit v1.2.3