diff options
author | Ben Yorke <bendyorke@gmail.com> | 2016-05-12 09:11:36 -0500 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2016-05-27 12:10:28 -0400 |
commit | 31e5f081e4750008ce731b2ab40c565cd64a477d (patch) | |
tree | 42c445876f1a050a3987b9360e878ec0ad3c5bd0 /app | |
parent | d59f0d90e4eb2feff510cd7fb344e46b0286a1df (diff) | |
download | gitlab-ce-31e5f081e4750008ce731b2ab40c565cd64a477d.tar.gz |
Update notes immediately after closing/reopening
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index 8131d923677..f8151963fa7 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -114,9 +114,9 @@ class @Notes @refresh() , @pollingInterval - refresh: -> + refresh: => return if @refreshing is true - refreshing = true + @refreshing = true if not document.hidden and document.URL.indexOf(@noteable_url) is 0 @getContent() @@ -134,8 +134,8 @@ class @Notes @renderDiscussionNote(note) else @renderNote(note) - always: => - @refreshing = false + .always () => + @refreshing = false ### Increase @pollingInterval up to 120 seconds on every function call, |