this.triggerEl = this.el.select('span.dropdown-toggle',true).first();
this.inputEl().on("click", this.showTouchView, this);
- this.triggerEl.on("click", this.showTouchView, this);
+ if (this.triggerEl) {
+ this.triggerEl.on("click", this.showTouchView, this);
+ }
+
this.touchViewFooterEl.select('.roo-touch-view-cancel', true).first().on('click', this.hideTouchView, this);
this.touchViewFooterEl.select('.roo-touch-view-ok', true).first().on('click', this.setTouchViewValue, this);
this.arrange();
- this.fireEvent('afterupload', this, xhr);
+ this.fireEvent('onUpload', this, xhr);
},