mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
Add means of halting newTiddlerEvent to hook
This commit is contained in:
parent
810033bd71
commit
94bd9f2545
@ -398,6 +398,9 @@ NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) {
|
|||||||
// If a draft of the target tiddler already exists then it is reused
|
// If a draft of the target tiddler already exists then it is reused
|
||||||
NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {
|
NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {
|
||||||
event = $tw.hooks.invokeHook("th-new-tiddler", event);
|
event = $tw.hooks.invokeHook("th-new-tiddler", event);
|
||||||
|
if(!event) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// Get the story details
|
// Get the story details
|
||||||
var storyList = this.getStoryList(),
|
var storyList = this.getStoryList(),
|
||||||
templateTiddler, additionalFields, title, draftTitle, existingTiddler;
|
templateTiddler, additionalFields, title, draftTitle, existingTiddler;
|
||||||
|
Loading…
Reference in New Issue
Block a user