mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 15:42:59 +00:00 
			
		
		
		
	Get rid of the modal popup for empty wikis
Ugly and clumsy.
This commit is contained in:
		| @@ -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. |  | ||||||
| @@ -117,11 +117,6 @@ exports.startup = function() { | |||||||
| 			$tw.utils.dispatchCustomEvent(document,"tw-modal",{ | 			$tw.utils.dispatchCustomEvent(document,"tw-modal",{ | ||||||
| 				param: "$:/messages/SaveInstructions" | 				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 { | 	} else { | ||||||
| 		// On the server, start a commander with the command line arguments | 		// On the server, start a commander with the command line arguments | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jeremy Ruston
					Jeremy Ruston