diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2015-05-21 15:57:42 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-07-28 17:12:15 +0100 |
commit | ecb7a3525ad2afaba7a524922a9de26a3531eb37 (patch) | |
tree | 1cb3d428391316208c0a780de92592a7aee6ee86 /templates | |
parent | aaa1947c2ec5a45cfca0b01213464afcc10e4c9a (diff) |
Fix “All Reports” table headers on scroll.
This reuses some JavaScript I originally wrote for mySociety’s
EveryPolitician project.
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/web/base/reports/index.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/web/base/reports/index.html b/templates/web/base/reports/index.html index 7f8d7fbf6..837d99271 100755 --- a/templates/web/base/reports/index.html +++ b/templates/web/base/reports/index.html @@ -44,4 +44,11 @@ </tbody> </table> +<script type="text/javascript" src="[% version('/js/jquery.fixedthead.js') %]"></script> +<script type="text/javascript"> +$(function(){ + $('.nicetable thead').fixedThead(); +}); +</script> + [% INCLUDE 'footer.html', pagefooter = 'yes' %] |