diff --git a/services/web/app/views/project/editor/editor.jade b/services/web/app/views/project/editor/editor.jade index 9754f0cdef..7445f99a7f 100644 --- a/services/web/app/views/project/editor/editor.jade +++ b/services/web/app/views/project/editor/editor.jade @@ -83,7 +83,6 @@ div.full-size( a.rp-entry-button(href, ng-click="rejectChange(entry_id)") i.fa.fa-times |  Reject - div(ng-if="entry.type == 'comment'") div(ng-repeat="comment in entry.thread", class="comment-thread__comment") div.small(style="color: hsl({{ users[comment.user_id].hue }}, 70%, 50%)") {{ users[comment.user_id].name }} diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/track-changes/TrackChangesManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/track-changes/TrackChangesManager.coffee index d869158e8a..f5059c6820 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/track-changes/TrackChangesManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/track-changes/TrackChangesManager.coffee @@ -67,8 +67,13 @@ define [ @nextUpdateMetaData = null else user_id = window.user.id - + + was_tracking = @changesTracker.track_changes + if @dont_track_next_update + @changesTracker.track_changes = false + @dont_track_next_update = false @applyChange(e, { user_id }) + @changesTracker.track_changes = was_tracking # TODO: Just for debugging, remove before going live. setTimeout () => @@ -122,8 +127,7 @@ define [ change = @changesTracker.getChange(change_id) return if !change? @changesTracker.removeChangeId(change_id) - is_tracking = @changesTracker.track_changes - @changesTracker.track_changes = false + @dont_track_next_update = true session = @editor.getSession() if change.op.d? content = change.op.d @@ -138,9 +142,7 @@ define [ session.remove({start, end}) else throw new Error("unknown change: #{JSON.stringify(change)}") - setTimeout () => - @changesTracker.track_changes = is_tracking - , 0 + checkMapping: () -> session = @editor.getSession() diff --git a/services/web/public/coffee/ide/review-panel/directives/reviewPanelSorted.coffee b/services/web/public/coffee/ide/review-panel/directives/reviewPanelSorted.coffee index 669a6e9c7a..983379f04c 100644 --- a/services/web/public/coffee/ide/review-panel/directives/reviewPanelSorted.coffee +++ b/services/web/public/coffee/ide/review-panel/directives/reviewPanelSorted.coffee @@ -23,7 +23,8 @@ define [ scope.$watch "reviewPanel.entries", (value) -> return if !value? - layout() + $timeout () -> + layout() scope.$on "review-panel:layout", () -> $timeout () ->