kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fix problem with editing tiddler titles
The check whether a draft has been modified was ignoring changes to the title. Fixes #593print-window-tiddler
rodzic
f6bd3b8c37
commit
f5848c395a
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue