add test clear button

This commit is contained in:
vitalets
2013-01-05 19:16:16 +04:00
parent 5edc4bbfcb
commit 294c5c0528
3 changed files with 46 additions and 10 deletions

View File

@@ -27,6 +27,14 @@ $(function(){
render: function () {
Textarea.superclass.render.call(this);
if(this.options.inputclass) {
this.$input.addClass(this.options.inputclass);
}
if(this.options.placeholder) {
this.$input.attr('placeholder', this.options.placeholder);
}
//ctrl + enter
this.$input.keydown(function (e) {
if (e.ctrlKey && e.which === 13) {