From 2be9e82f844e72970a4210290bc6b9d4a8a522e4 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 1 Sep 2013 22:33:23 +0100 Subject: [PATCH] Get rid of the modal popup for empty wikis Ugly and clumsy. --- core/messages/GettingStarted.tid | 11 ----------- core/modules/startup.js | 5 ----- 2 files changed, 16 deletions(-) delete mode 100644 core/messages/GettingStarted.tid diff --git a/core/messages/GettingStarted.tid b/core/messages/GettingStarted.tid deleted file mode 100644 index 201d7ed76..000000000 --- a/core/messages/GettingStarted.tid +++ /dev/null @@ -1,11 +0,0 @@ -title: $:/messages/GettingStarted -type: text/vnd.tiddlywiki -subtitle: Welcome to ~TiddlyWiki -footer: <$button message="tw-close-tiddler" class="btn btn-primary">Close -help: http://five.tiddlywiki.com/static/GettingStarted - -This ~TiddlyWiki is empty. - -You can create and edit tiddlers, but before you use ~TiddlyWiki in earnest it is strongly advised that you verify that you can save and retrieve your changes. - -~TiddlyWiki5 is currently a preliminary alpha release. Visit http://five.tiddlywiki.com/ for the latest information on how to use it. diff --git a/core/modules/startup.js b/core/modules/startup.js index 263cc0674..e6c573405 100644 --- a/core/modules/startup.js +++ b/core/modules/startup.js @@ -117,11 +117,6 @@ exports.startup = function() { $tw.utils.dispatchCustomEvent(document,"tw-modal",{ param: "$:/messages/SaveInstructions" }); - } else if($tw.wiki.countTiddlers() === 0){ - // Otherwise, if give instructions if this is an empty TiddlyWiki - $tw.utils.dispatchCustomEvent(document,"tw-modal",{ - param: "$:/messages/GettingStarted" - }); } } else { // On the server, start a commander with the command line arguments