mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 14:23:53 +00:00
Missed corrections of tm-auto-save-wiki
message
This commit is contained in:
parent
fc6e0e0311
commit
7b1a9d84a1
@ -59,7 +59,7 @@ function SaverHandler(options) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Listen for the autosave event
|
// 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
|
// Do the autosave unless there are outstanding tiddler change events
|
||||||
if(self.wiki.getSizeOfTiddlerEventQueue() === 0) {
|
if(self.wiki.getSizeOfTiddlerEventQueue() === 0) {
|
||||||
// Check if we're dirty
|
// Check if we're dirty
|
||||||
|
@ -73,7 +73,7 @@ exports.repackPlugin = function(title,additionalTiddlers,excludeTiddlers) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Trigger an autosave
|
// Trigger an autosave
|
||||||
$tw.rootWidget.dispatchEvent({type: "tw-auto-save-wiki"});
|
$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
|
||||||
// Return a heartwarming confirmation
|
// Return a heartwarming confirmation
|
||||||
return "Plugin " + title + " successfully saved";
|
return "Plugin " + title + " successfully saved";
|
||||||
};
|
};
|
||||||
|
@ -244,7 +244,7 @@ NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {
|
|||||||
this.removeTitleFromStory(storyList,title);
|
this.removeTitleFromStory(storyList,title);
|
||||||
this.saveStoryList(storyList);
|
this.saveStoryList(storyList);
|
||||||
// Trigger an autosave
|
// Trigger an autosave
|
||||||
$tw.rootWidget.dispatchEvent({type: "tw-auto-save-wiki"});
|
$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -335,7 +335,7 @@ NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {
|
|||||||
this.saveStoryList(storyList);
|
this.saveStoryList(storyList);
|
||||||
}
|
}
|
||||||
// Trigger an autosave
|
// 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
|
// Navigate to the $:/Import tiddler
|
||||||
this.addToHistory([IMPORT_TITLE]);
|
this.addToHistory([IMPORT_TITLE]);
|
||||||
// Trigger an autosave
|
// Trigger an autosave
|
||||||
$tw.rootWidget.dispatchEvent({type: "tw-auto-save-wiki"});
|
$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.navigator = NavigatorWidget;
|
exports.navigator = NavigatorWidget;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user