mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
parent
a332b82df5
commit
99ccdf4584
@ -203,6 +203,10 @@ NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {
|
||||
if(tiddler.hasField("draft.title")) {
|
||||
// Delete the original tiddler
|
||||
var originalTitle = tiddler.fields["draft.of"];
|
||||
// Ask for confirmation if the tiddler has changed
|
||||
if(!confirm("Do you wish to delete the tiddler '" + originalTitle + "'")) {
|
||||
return false;
|
||||
}
|
||||
this.wiki.deleteTiddler(originalTitle);
|
||||
this.removeTitleFromStory(storyList,originalTitle);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user