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:
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";
|
event.type = "tw-cancel-tiddler";
|
||||||
this.dispatchEvent(event);
|
this.dispatchEvent(event);
|
||||||
} else if(isConfirmed) {
|
} else if(isConfirmed) {
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user