text x-clear button and new $tpl property in inputs, need tests

This commit is contained in:
vitalets
2013-01-05 16:23:58 +04:00
parent f6a7b26e1f
commit 5edc4bbfcb
15 changed files with 173 additions and 84 deletions

View File

@@ -35,9 +35,13 @@ $(function(){
}
for(var i=0; i<this.sourceData.length; i++) {
this.$input.append($('<option>', {value: this.sourceData[i].value}).text(this.sourceData[i].text));
this.$tpl.append($('<option>', {value: this.sourceData[i].value}).text(this.sourceData[i].text));
}
if(this.options.inputclass) {
this.$input.addClass(this.options.inputclass);
}
//enter submit
this.$input.on('keydown.editable', function (e) {
if (e.which === 13) {