1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Missed corrections of tm-auto-save-wiki message

This commit is contained in:
Jermolene 2014-09-02 11:16:06 +01:00
parent fc6e0e0311
commit 7b1a9d84a1
3 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ function SaverHandler(options) {
}
});
// Listen for the autosave event
$tw.rootWidget.addEventListener("tw-auto-save-wiki",function(event) {
$tw.rootWidget.addEventListener("tm-auto-save-wiki",function(event) {
// Do the autosave unless there are outstanding tiddler change events
if(self.wiki.getSizeOfTiddlerEventQueue() === 0) {
// Check if we're dirty

View File

@ -73,7 +73,7 @@ exports.repackPlugin = function(title,additionalTiddlers,excludeTiddlers) {
}
});
// Trigger an autosave
$tw.rootWidget.dispatchEvent({type: "tw-auto-save-wiki"});
$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
// Return a heartwarming confirmation
return "Plugin " + title + " successfully saved";
};

View File

@ -244,7 +244,7 @@ NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {
this.removeTitleFromStory(storyList,title);
this.saveStoryList(storyList);
// Trigger an autosave
$tw.rootWidget.dispatchEvent({type: "tw-auto-save-wiki"});
$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
return false;
};
@ -335,7 +335,7 @@ NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {
this.saveStoryList(storyList);
}
// Trigger an autosave
$tw.rootWidget.dispatchEvent({type: "tw-auto-save-wiki"});
$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
}
}
}
@ -484,7 +484,7 @@ NavigatorWidget.prototype.handlePerformImportEvent = function(event) {
// Navigate to the $:/Import tiddler
this.addToHistory([IMPORT_TITLE]);
// Trigger an autosave
$tw.rootWidget.dispatchEvent({type: "tw-auto-save-wiki"});
$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
};
exports.navigator = NavigatorWidget;