diff --git a/rhodecode/public/js/src/rhodecode/comments.js b/rhodecode/public/js/src/rhodecode/comments.js --- a/rhodecode/public/js/src/rhodecode/comments.js +++ b/rhodecode/public/js/src/rhodecode/comments.js @@ -775,10 +775,10 @@ var CommentsController = function() { linkifyComments($('.inline-comment-injected')); timeagoActivate(); - if (window.Waypoint !== undefined) { + if (window.updateSticky !== undefined) { // potentially our comments change the active window size, so we - // notify waypint to re-paint - Waypoint.refreshAll() + // notify sticky elements + updateSticky() } commentForm.setActionButtonsDisabled(false); diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako --- a/rhodecode/templates/codeblocks/diffs.mako +++ b/rhodecode/templates/codeblocks/diffs.mako @@ -157,7 +157,7 @@ collapse_all = len(diffset.files) > coll ## anchor with support of sticky header
- +
coll ${_('This diff has been collapsed as it changes many lines, (%i lines changed)' % lines_changed)} ${_('Show them')} + onclick="$(this).closest('table').removeClass('cb-collapsed'); updateSticky(); return false;">${_('Show them')} ${_('Hide them')} + onclick="$(this).closest('table').addClass('cb-collapsed'); updateSticky(); return false;">${_('Hide them')} @@ -292,7 +292,7 @@ collapse_all = len(diffset.files) > coll display_state = '' %>
- +