kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Hook for closing tiddlers (#3797)
rodzic
644062fc21
commit
63fa0c4fa4
|
@ -160,6 +160,7 @@ NavigatorWidget.prototype.handleNavigateEvent = function(event) {
|
||||||
|
|
||||||
// Close a specified tiddler
|
// Close a specified tiddler
|
||||||
NavigatorWidget.prototype.handleCloseTiddlerEvent = function(event) {
|
NavigatorWidget.prototype.handleCloseTiddlerEvent = function(event) {
|
||||||
|
event = $tw.hooks.invokeHook("th-closing-tiddler",event);
|
||||||
var title = event.param || event.tiddlerTitle,
|
var title = event.param || event.tiddlerTitle,
|
||||||
storyList = this.getStoryList();
|
storyList = this.getStoryList();
|
||||||
// Look for tiddlers with this title to close
|
// Look for tiddlers with this title to close
|
||||||
|
|
Ładowanie…
Reference in New Issue