diff options
author | gebele <gebele@in-silico.ch> | 2016-01-28 21:27:26 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2016-01-28 21:27:26 +0100 |
commit | 2b6ae54466d9854bb8898e1136c125d40b2d3444 (patch) | |
tree | 8167e00632368ce4631d933ab5f92e087e1e57a3 /public/javascripts/jquery.tablesorter.staticrow.min.js | |
parent | b72906cf99507b1be887b7ecf98f596135099412 (diff) |
restyled prediction table
Diffstat (limited to 'public/javascripts/jquery.tablesorter.staticrow.min.js')
-rw-r--r-- | public/javascripts/jquery.tablesorter.staticrow.min.js | 1 |
1 files changed, 1 insertions, 0 deletions
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 |