mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Sycn track changes based on doc state, not editor state
This commit is contained in:
parent
ff7c5a0954
commit
d9b774bb9b
2 changed files with 4 additions and 1 deletions
|
@ -84,6 +84,9 @@ define [
|
|||
setTrackingChanges: (track_changes) ->
|
||||
@doc.track_changes = track_changes
|
||||
|
||||
getTrackingChanges: () ->
|
||||
!!@doc.track_changes
|
||||
|
||||
setTrackChangesIdSeeds: (id_seeds) ->
|
||||
@doc.track_changes_id_seeds = id_seeds
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ define [
|
|||
@_syncTimeout = null
|
||||
|
||||
want = @$scope.editor.wantTrackChanges
|
||||
have = @$scope.editor.trackChanges
|
||||
have = doc.getTrackingChanges()
|
||||
if want == have
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue