1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Merge branch 'master' into patch-10

This commit is contained in:
Simon Huber 2019-07-11 18:19:49 +02:00 committed by GitHub
commit ba2f4822dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,8 +180,12 @@ Popup.prototype.cancel = function(level,focusedInputNode) {
}
if(!inputWithinPopup) {
var popup = this.popups.pop();
if(popup.title) {
popup.wiki.deleteTiddler(popup.title);
if(popup.title) {
if(popup.noStateReference) {
popup.wiki.deleteTiddler(popup.title);
} else {
popup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title);
}
}
}
}