mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
Fix detection of draft changes
We were getting a lot of problems where changes to a tiddler were not being recognised
This commit is contained in:
parent
680fe41ed7
commit
6d1eaeb0fc
@ -1094,18 +1094,7 @@ exports.isDraftModified = function(title) {
|
||||
if(!origTiddler) {
|
||||
return true;
|
||||
}
|
||||
if(tiddler.fields["draft.title"] !== tiddler.fields["draft.of"]) {
|
||||
return true;
|
||||
}
|
||||
if(!$tw.utils.isArrayEqual(tiddler.fields.tags,origTiddler.fields.tags)) {
|
||||
return true;
|
||||
}
|
||||
return !Object.keys(tiddler.fields).every(function(field) {
|
||||
if(ignoredFields.indexOf(field) >= 0) {
|
||||
return true;
|
||||
}
|
||||
return tiddler.fields[field] === origTiddler.fields[field];
|
||||
});
|
||||
return !tiddler.isEqual(origTiddler,ignoredFields);
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user