1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +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"; event.type = "tw-cancel-tiddler";
this.dispatchEvent(event); this.dispatchEvent(event);
} else if(isConfirmed) { } else if(isConfirmed) {

View File

@ -1089,7 +1089,7 @@ exports.isDraftModified = function(title) {
if(!tiddler.isDraft()) { if(!tiddler.isDraft()) {
return false; 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"]); origTiddler = this.getTiddler(tiddler.fields["draft.of"]);
if(!origTiddler) { if(!origTiddler) {
return true; return true;