1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Fixed typos in edit-text widget

Thanks @grayeul
This commit is contained in:
Jermolene 2013-11-09 13:15:54 +00:00
parent 4ee67986a5
commit bbe9a9c191

View File

@ -79,10 +79,10 @@ EditTextWidget.prototype.getEditInfo = function() {
if(this.editIndex) {
value = this.wiki.extractTiddlerDataItem(this.editTitle,this.editIndex,this.editDefault);
update = function(value) {
var data = this.wiki.getTiddlerData(this.editTitle,{});
if(data[this.editIndex] !== text) {
data[this.editIndex] = text;
this.wiki.setTiddlerData(this.editTitle,data);
var data = self.wiki.getTiddlerData(self.editTitle,{});
if(data[self.editIndex] !== text) {
data[self.editIndex] = text;
self.wiki.setTiddlerData(self.editTitle,data);
}
};
} else {