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

@@ -174,7 +174,8 @@ $(function(){
} else if(this.sourceData) {
data = $.fn.editableutils.itemsByValue(value, this.sourceData, this.idFunc);
} else {
//can not get list of possible values (e.g. autotext for select2 with ajax source)
//can not get list of possible values
//(e.g. autotext for select2 with ajax source)
}
//data may be array (when multiple values allowed)
@@ -190,7 +191,8 @@ $(function(){
text = $.isArray(text) ? text.join(this.options.viewseparator) : text;
$(element).text(text);
//$(element).text(text);
Constructor.superclass.value2html.call(this, text, element);
},
html2value: function(html) {