add wysi input, refactor all inputs to append $tpl to form before render()

This commit is contained in:
vitalets
2013-01-07 01:03:09 +04:00
parent cf9b9dea9d
commit ee79d5cec4
23 changed files with 10223 additions and 198 deletions

View File

@@ -25,15 +25,8 @@ $(function(){
$.extend(Textarea.prototype, {
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);
}
this.setClass();
this.setAttr('placeholder');
//ctrl + enter
this.$input.keydown(function (e) {