add option escape, fixes #377

This commit is contained in:
vitalets
2013-09-22 01:05:42 +04:00
parent fff300e2bd
commit 1329e0ccf9
11 changed files with 38 additions and 19 deletions

View File

@@ -71,10 +71,9 @@ $(function(){
value2htmlFinal: function(value, element) {
if(this.getIsObjects()) {
var items = $.fn.editableutils.itemsByValue(value, this.sourceData);
$(element).text(items.length ? items[0].text : '');
} else {
$(element).text(value);
}
value = items.length ? items[0].text : '';
}
$.fn.editabletypes.abstractinput.prototype.value2html.call(this, value, element);
},
html2value: function (html) {