2012-10-10 20:59:25 +00:00
|
|
|
/*\
|
2012-11-13 18:42:50 +00:00
|
|
|
title: $:/plugins/tiddlywiki/dropbox-main/dropbox-main.js
|
2012-10-10 20:59:25 +00:00
|
|
|
type: application/javascript
|
|
|
|
module-type: dropbox-startup
|
|
|
|
|
|
|
|
Startup the Dropbox main app
|
|
|
|
|
|
|
|
\*/
|
|
|
|
(function(){
|
|
|
|
|
|
|
|
/*jslint node: true, browser: true */
|
|
|
|
/*global $tw: false */
|
|
|
|
"use strict";
|
|
|
|
|
2012-10-13 23:21:44 +00:00
|
|
|
exports.startup = function(loggedIn) {
|
|
|
|
if(loggedIn) {
|
|
|
|
$tw.wiki.addTiddler({title: $tw.plugins.dropbox.titleLoadedWikis, text: "no"},true);
|
|
|
|
// Load tiddlers
|
|
|
|
$tw.plugins.dropbox.loadWikiFiles("/",function() {
|
|
|
|
$tw.wiki.addTiddler({title: $tw.plugins.dropbox.titleLoadedWikis, text: "yes"},true);
|
|
|
|
console.log("Loaded all wikis",$tw.wiki.tiddlers);
|
|
|
|
});
|
|
|
|
}
|
2012-10-10 20:59:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
})();
|