1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fix problem with editing tiddler titles

The check whether a draft has been modified was ignoring changes to the
title.

Fixes #593
This commit is contained in:
Jermolene 2014-05-01 17:39:37 +01:00
parent f6bd3b8c37
commit f5848c395a

View File

@ -1077,6 +1077,9 @@ $tw.Wiki.prototype.isDraftModified = function(title) {
}
var ignoredFields = ["created", "modified", "title", "draft.title", "draft.of", "tags"],
origTiddler = this.getTiddler(tiddler.fields["draft.of"]);
if(tiddler.fields["draft.title"] !== tiddler.fields["draft.of"]) {
return true;
}
if(!$tw.utils.isArrayEqual(tiddler.fields.tags,origTiddler.fields.tags)) {
return true;
}