From 4a3a5bf1f06c4efb8449c860e90c214f707954f6 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 13 Jun 2015 18:08:09 +0100 Subject: [PATCH] Don't autosave when cancelling an edit Fixes #1762 --- core/modules/widgets/navigator.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 1a66990be..ea543d058 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -389,9 +389,7 @@ NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) { } else { this.removeTitleFromStory(storyList,draftTitle); } - this.saveStoryList(storyList); - // Trigger an autosave - $tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"}); + this.saveStoryList(storyList); } } return false;