From 442ae638de51b116761a291f754d4ae0fee5da42 Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 19 Nov 2015 12:04:35 +0000 Subject: [PATCH] Revert "Report unsaved changes after 60 seconds" This reverts commit 44a7e598f2fdbd91d18cc340de477ca3d33a1338. --- .../controllers/SavingNotificationController.coffee | 8 -------- 1 file changed, 8 deletions(-) diff --git a/services/web/public/coffee/ide/editor/controllers/SavingNotificationController.coffee b/services/web/public/coffee/ide/editor/controllers/SavingNotificationController.coffee index 0bffb60204..f9c68ca05f 100644 --- a/services/web/public/coffee/ide/editor/controllers/SavingNotificationController.coffee +++ b/services/web/public/coffee/ide/editor/controllers/SavingNotificationController.coffee @@ -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."