fix setting value of Ox.EditableContent while not editing

This commit is contained in:
j 2014-01-16 14:07:36 +00:00
parent 6dc3e96ff1
commit a919b43c2e

View file

@ -37,10 +37,10 @@ Ox.EditableContent = function(options, self) {
} }
}, },
highlight: function() { highlight: function() {
!self.options.editing && self.$value.html(formatValue()); !self.options.editing && that.html(formatValue());
}, },
value: function() { value: function() {
!self.options.editing && self.$value.html(formatValue()); !self.options.editing && that.html(formatValue());
} }
}) })
.addClass('OxEditableContent OxSelectable') .addClass('OxEditableContent OxSelectable')