diff options
Diffstat (limited to '')
-rw-r--r-- | source/js/code_scrollbar.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/js/code_scrollbar.js b/source/js/code_scrollbar.js new file mode 100644 index 00000000..b99914c8 --- /dev/null +++ b/source/js/code_scrollbar.js @@ -0,0 +1,10 @@ +$(function() +{ + $('.sourceCode diff').jScrollPane(); +}); + +$(window).bind('resize', function() { + var scroll = $('.sourceCode diff').jScrollPane(); + location.reload(); + scroll.reinitialise(); +}); |