typeahead bse ready, need tests

This commit is contained in:
vitalets
2013-01-13 22:41:49 +04:00
parent d8e08085de
commit 8061e5fd55
4 changed files with 215 additions and 7 deletions

View File

@@ -48,10 +48,7 @@ $(function(){
.keyup($.proxy(this.toggleClear, this))
.parent().css('position', 'relative');
this.$clear.click($.proxy(function(){
this.$clear.hide();
this.$input.val('').focus();
}, this));
this.$clear.click($.proxy(this.clear, this));
}
},
@@ -81,7 +78,12 @@ $(function(){
} else {
this.$clear.hide();
}
}
},
clear: function() {
this.$clear.hide();
this.$input.val('').focus();
}
});
Text.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {