diff options
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index 29cba40..14fc75b 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -9,20 +9,27 @@ %hr :javascript $(document).ready(function(){ - $("table#neighbors").tablesorter({ + $(".tablesorter").tablesorter({ debug: false, theme: "bootstrap", headerTemplate: '{content} {icon}', - widgets: ['uitheme', 'staticRow'], + widgets: ['uitheme', 'staticRow', 'scroller'], widgetOptions: { + scroller_upAfterSort: true, + scroller_jumpToHeader: true, + scroller_height : 300, + scroller_fixedColumns : 4, + scroller_addFixedOverlay : false, + scroller_barWidth : null }, sortList: [[1,1]], widthFixed: false, }); }); - #results.table-responsive - %table.tablesorter{:id=>"neighbors"} + + #neighbors + %table.tablesorter{:id=>"fixed-columns-table"} %thead %tr %th @@ -125,4 +132,3 @@ %div{:style=>"display:inline-block;padding-right:20px;"} /= k.gsub(/\sMean/, '') %p= v.round(3) - |