1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Fixed problems with detecting changes to draft tiddlers

This commit is contained in:
Jermolene 2014-06-23 23:28:22 +01:00
parent 5962600cb6
commit 6f3e31abe5
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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;