Fix problem with editing tiddler titles

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

Fixes #593
print-window-tiddler
Jermolene 2014-05-01 17:39:37 +01:00
rodzic f6bd3b8c37
commit f5848c395a
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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