mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-29 21:45:16 +00:00
Add support for autosave
Causes the wiki to be autosaved whenever clicking “done” after editing a tiddler. Only works with savers that support autosave. We should probably make autosave configurable
This commit is contained in:
@@ -16,10 +16,6 @@ var TiddlyFoxSaver = function(wiki) {
|
||||
};
|
||||
|
||||
TiddlyFoxSaver.prototype.save = function(text,method,callback) {
|
||||
// Bail out unless this is a save (rather than a download)
|
||||
if(method !== "save") {
|
||||
return false;
|
||||
}
|
||||
var messageBox = document.getElementById("tiddlyfox-message-box");
|
||||
if(messageBox) {
|
||||
// Get the pathname of this document
|
||||
@@ -55,7 +51,8 @@ Information about this saver
|
||||
*/
|
||||
TiddlyFoxSaver.prototype.info = {
|
||||
name: "tiddlyfox",
|
||||
priority: 1500
|
||||
priority: 1500,
|
||||
capabilities: ["save", "autosave"]
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user