1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Autosave when deleting a tiddler

This commit is contained in:
Jermolene 2014-02-07 10:14:10 +00:00
parent f0d512edf0
commit 828fc9dcd0
2 changed files with 3 additions and 1 deletions

View File

@ -208,6 +208,8 @@ NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {
// Remove the closed tiddler from the story // Remove the closed tiddler from the story
this.removeTitleFromStory(storyList,title); this.removeTitleFromStory(storyList,title);
this.saveStoryList(storyList); this.saveStoryList(storyList);
// Send a notification event
this.dispatchEvent({type: "tw-auto-save-wiki"});
return false; return false;
}; };

View File

@ -4,7 +4,7 @@ tags: features
title: AutoSave title: AutoSave
type: text/vnd.tiddlywiki 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. You should see a yellow notification at the top right of the window to confirm that an automatic save has taken place.