diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-26 09:17:46 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-26 09:17:46 +0300 |
commit | e27f5aef462e5cf32f23fbb3137b98011c0c0ddf (patch) | |
tree | 88f2262a0f72da6029cb15466d7c87c277bac0c5 /app/assets/javascripts/diff.js.coffee | |
parent | a9eba1bde0e0ccd86bbc1df32d2538f986105d55 (diff) |
Fix sticky diff header
Diffstat (limited to 'app/assets/javascripts/diff.js.coffee')
-rw-r--r-- | app/assets/javascripts/diff.js.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/diff.js.coffee b/app/assets/javascripts/diff.js.coffee index b0b312e7749..05f5af42571 100644 --- a/app/assets/javascripts/diff.js.coffee +++ b/app/assets/javascripts/diff.js.coffee @@ -1,6 +1,7 @@ class @Diff UNFOLD_COUNT = 20 constructor: -> + $(document).off('click', '.js-unfold') $(document).on('click', '.js-unfold', (event) => target = $(event.target) unfoldBottom = target.hasClass('js-unfold-bottom') @@ -36,7 +37,7 @@ class @Diff ) ) - $('.diff-header').stick_in_parent(offset_top: $('.navbar').height()) + $('.diff-header').stick_in_parent(recalc_every: 1, offset_top: $('.navbar').height()) lineNumbers: (line) -> return ([0, 0]) unless line.children().length |