Commit 30f655c3 authored by Phil Hughes's avatar Phil Hughes

Fixed JS bugs in note.js merge

parent 2f5ee5ed
...@@ -507,7 +507,7 @@ ...@@ -507,7 +507,7 @@
notes = note.closest(".notes"); notes = note.closest(".notes");
if (DiffNotesApp != null) { if (DiffNotesApp != null) {
ref DiffNotesApp.$refs['' + noteId + '']; ref = DiffNotesApp.$refs['' + noteId + ''];
if (ref) { if (ref) {
ref.$destroy(true); ref.$destroy(true);
...@@ -763,7 +763,7 @@ ...@@ -763,7 +763,7 @@
return this.notesCountBadge.text(parseInt(this.notesCountBadge.text()) + updateCount); return this.notesCountBadge.text(parseInt(this.notesCountBadge.text()) + updateCount);
}; };
Notes.prorotype.resolveDiscussion = function () { Notes.prototype.resolveDiscussion = function () {
var $this = $(this), var $this = $(this),
discussionId = $this.attr('data-discussion-id'); discussionId = $this.attr('data-discussion-id');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment