mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-27 04:11:55 -08:00
parent
a332b82df5
commit
99ccdf4584
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue