mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
Fix bug with popup cancelling if state is in a field other than 'text'
This commit is contained in:
commit
a3a25f2453
|
@ -158,7 +158,11 @@ Popup.prototype.cancel = function(level) {
|
||||||
for(var t=level; t<numPopups; t++) {
|
for(var t=level; t<numPopups; t++) {
|
||||||
var popup = this.popups.pop();
|
var popup = this.popups.pop();
|
||||||
if(popup.title) {
|
if(popup.title) {
|
||||||
popup.wiki.deleteTiddler(popup.title);
|
if(popup.noStateReference) {
|
||||||
|
popup.wiki.deleteTiddler(popup.title);
|
||||||
|
} else {
|
||||||
|
popup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(this.popups.length === 0) {
|
if(this.popups.length === 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user