mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Fixed problems with detecting changes to draft tiddlers
This commit is contained in:
parent
5962600cb6
commit
6f3e31abe5
@ -308,7 +308,7 @@ NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {
|
||||
}
|
||||
));
|
||||
}
|
||||
if(!this.wiki.isDraftModified(title)) {
|
||||
if(!isRename && !this.wiki.isDraftModified(title)) {
|
||||
event.type = "tw-cancel-tiddler";
|
||||
this.dispatchEvent(event);
|
||||
} else if(isConfirmed) {
|
||||
|
@ -1089,7 +1089,7 @@ exports.isDraftModified = function(title) {
|
||||
if(!tiddler.isDraft()) {
|
||||
return false;
|
||||
}
|
||||
var ignoredFields = ["created", "modified", "title", "draft.title", "draft.of", "tags"],
|
||||
var ignoredFields = ["created", "modified", "title", "draft.title", "draft.of"],
|
||||
origTiddler = this.getTiddler(tiddler.fields["draft.of"]);
|
||||
if(!origTiddler) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user