mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Correct typo in 954a987d31
This commit is contained in:
parent
6005d7f19c
commit
e8425131f4
@ -160,10 +160,10 @@ TextEditor.prototype.saveChanges = function() {
|
||||
if(!tiddler) {
|
||||
tiddler = new $tw.Tiddler({title: this.tiddlerTitle});
|
||||
}
|
||||
var newValue = tiddler.getFieldString(this.fieldName);
|
||||
if(text !== newValue) {
|
||||
var oldValue = tiddler.getFieldString(this.fieldName);
|
||||
if(text !== oldValue) {
|
||||
var update = {};
|
||||
update[this.fieldName] = newValue;
|
||||
update[this.fieldName] = text;
|
||||
this.editWidget.renderer.renderTree.wiki.addTiddler(new $tw.Tiddler(tiddler,update));
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user