From 828fc9dcd0acd0d166f86d5c20fb65dcdb566199 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 7 Feb 2014 10:14:10 +0000 Subject: [PATCH] Autosave when deleting a tiddler --- core/modules/widgets/navigator.js | 2 ++ editions/tw5.com/tiddlers/features/AutoSave.tid | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 81b316281..49d6101e4 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -208,6 +208,8 @@ NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) { // Remove the closed tiddler from the story this.removeTitleFromStory(storyList,title); this.saveStoryList(storyList); + // Send a notification event + this.dispatchEvent({type: "tw-auto-save-wiki"}); return false; }; diff --git a/editions/tw5.com/tiddlers/features/AutoSave.tid b/editions/tw5.com/tiddlers/features/AutoSave.tid index 2ceb1058f..ad11220ea 100644 --- a/editions/tw5.com/tiddlers/features/AutoSave.tid +++ b/editions/tw5.com/tiddlers/features/AutoSave.tid @@ -4,7 +4,7 @@ tags: features title: AutoSave type: text/vnd.tiddlywiki -If there is a SaverModule available that supports it, TiddlyWiki will automatically trigger a save of the current document on clicking {{$:/core/images/done-button}} ''tick'' after editing a tiddler. +If there is a SaverModule available that supports it, TiddlyWiki will automatically trigger a save of the current document on clicking {{$:/core/images/done-button}} ''tick'' or {{$:/core/images/delete-button}} ''delete'' when editing a tiddler. You should see a yellow notification at the top right of the window to confirm that an automatic save has taken place.