mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 06:15:32 -05:00
Revert "Report unsaved changes after 60 seconds"
This reverts commit 44a7e598f2fdbd91d18cc340de477ca3d33a1338.
This commit is contained in:
parent
99bca31766
commit
442ae638de
1 changed files with 0 additions and 8 deletions
|
@ -24,8 +24,6 @@ define [
|
|||
if oldStatus[doc_id]?
|
||||
newStatus[doc_id] = oldStatus[doc_id]
|
||||
newStatus[doc_id].unsavedSeconds += 1
|
||||
if newStatus[doc_id].unsavedSeconds == 60
|
||||
reportUnsavedChanges(doc)
|
||||
else
|
||||
newStatus[doc_id] = {
|
||||
unsavedSeconds: 0
|
||||
|
@ -41,12 +39,6 @@ define [
|
|||
$scope.docSavingStatusCount = newUnsavedCount
|
||||
$scope.$apply()
|
||||
|
||||
reportUnsavedChanges = (doc) ->
|
||||
ide.reportError new Error("unsaved changes"), {
|
||||
inflightOp: doc?.getInflightOp(),
|
||||
pendingOp: doc?.getPendingOp()
|
||||
}
|
||||
|
||||
warnAboutUnsavedChanges = () ->
|
||||
if Document.hasUnsavedChanges()
|
||||
return "You have unsaved changes. If you leave now they will not be saved."
|
||||
|
|
Loading…
Reference in a new issue