diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-03-13 16:13:12 -0600 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-05 17:44:14 +0100 |
commit | 9c30b0e918ca035d8555de5e3393247f6d00ed16 (patch) | |
tree | 7aeea9695748036cf465952711184f2469427fab /app/assets/javascripts/notes.js | |
parent | 336016fa858dfa48b9f9e9b5b2d9c3a9000fffe5 (diff) | |
download | gitlab-ce-9c30b0e918ca035d8555de5e3393247f6d00ed16.tar.gz |
Fix some specs
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r-- | app/assets/javascripts/notes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 71c03c89314..226029ba8f3 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -192,7 +192,7 @@ require('./task_list'); }; Notes.prototype.refresh = function() { - if (!document.hidden && document.URL.indexOf(this.noteable_url) === 0) { + if (!document.hidden) { return this.getContent(); } }; @@ -371,7 +371,7 @@ require('./task_list'); discussionContainer.append(note_html); } - if (typeof gl.diffNotesCompileComponents !== 'undefined' && note.discussion_id) { + if (typeof gl.diffNotesCompileComponents !== 'undefined' && note.discussion_resolvable) { gl.diffNotesCompileComponents(); this.renderDiscussionAvatar(diffAvatarContainer, note); } |