Get rid of the modal popup for empty wikis

Ugly and clumsy.
print-window-tiddler
Jeremy Ruston 2013-09-01 22:33:23 +01:00
rodzic e7a6e23906
commit 2be9e82f84
2 zmienionych plików z 0 dodań i 16 usunięć

Wyświetl plik

@ -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</$button>
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.

Wyświetl plik

@ -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