diff --git a/tw5dropbox/appwiki/plugins/dropbox-app.js b/tw5dropbox/appwiki/plugins/dropbox-app.js index 86640d689..bb6ddd776 100644 --- a/tw5dropbox/appwiki/plugins/dropbox-app.js +++ b/tw5dropbox/appwiki/plugins/dropbox-app.js @@ -26,7 +26,7 @@ exports.startup = function() { } if(wikiName) { $tw.plugins.dropbox.wikiName = wikiName; - $tw.wiki.addTiddler({title: titleWikiName, text: $tw.plugins.dropbox.wikiName}); + $tw.wiki.addTiddler({title: titleWikiName, text: $tw.plugins.dropbox.wikiName},true); // Load tiddlers $tw.plugins.dropbox.loadTiddlerFiles("/" + $tw.plugins.dropbox.wikiName + "/tiddlers",function() { console.log("Loaded all tiddlers",$tw.wiki.tiddlers); diff --git a/tw5dropbox/plugins/dropbox.js b/tw5dropbox/plugins/dropbox.js index c843b87d1..b02870634 100644 --- a/tw5dropbox/plugins/dropbox.js +++ b/tw5dropbox/plugins/dropbox.js @@ -37,7 +37,7 @@ $tw.plugins.dropbox.login = function() { return $tw.plugins.dropbox.showError(error); } // Mark us as logged in - $tw.wiki.addTiddler({title: titleIsLoggedIn, text: "yes"}); + $tw.wiki.addTiddler({title: titleIsLoggedIn, text: "yes"},true); // Get user information $tw.plugins.dropbox.getUserInfo(function() { // Invoke any dropbox-startup modules @@ -58,7 +58,7 @@ $tw.plugins.dropbox.getUserInfo = function(callback) { } $tw.plugins.dropbox.userInfo = userInfo; // Save the username - $tw.wiki.addTiddler({title: titleUserName, text: userInfo.name}); + $tw.wiki.addTiddler({title: titleUserName, text: userInfo.name},true); callback(); }); }; @@ -71,7 +71,7 @@ $tw.plugins.dropbox.logout = function() { } // Mark us as logged out $tw.wiki.deleteTiddler(titleUserName); - $tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"}); + $tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"},true); }); }; @@ -217,7 +217,7 @@ exports.startup = function() { return; } // Mark us as not logged in - $tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"}); + $tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"},true); // Initialise Dropbox for sandbox access $tw.plugins.dropbox.client = new Dropbox.Client({key: apiKey, sandbox: true}); // Use the basic redirection authentication driver