"items" : [
{
"listeners" : {
- "render" : "function (_self)\n{\n _this.uploadDL = this;\n \n _this.uploadDL.inputEl().on(\"change\",function(){\n \n var id = _this.show.isActive() ? _this.data.onid : \"\";\n _this.form_upload.doAction('submit', {\n params: {\n onid: id,\n ontable: 'core_email',\n ts : Math.random()\n }\n });\n Roo.log(\"Upload success\");\n \n \n //console.log(_this.current_obj_btn.getEl().dom.className);\n _this.dialog.uploadProgress.defer(1000, _this.dialog);\n });\n \n \n}"
+ "render" : "function (_self)\n{\n _this.uploadDL = this;\n \n _this.uploadDL.inputEl().on(\"change\",function(){\n \n _this.form.findField('onid').setValue(_this.showTypeBtn.isActive() ? _this.data.onid : 0);\n _this.form.doAction('submit');\n \n //_this.dialog.uploadProgress.defer(1000, _this.dialog);\n });\n \n \n}"
},
"String name" : "imageUpload",
"xtype" : "Input",
_this.uploadDL = this;
_this.uploadDL.inputEl().on("change",function(){
-
- var id = _this.show.isActive() ? _this.data.onid : "";
- _this.form_upload.doAction('submit', {
- params: {
- onid: id,
- ontable: 'core_email',
- ts : Math.random()
- }
- });
- Roo.log("Upload success");
+ _this.form.findField('onid').setValue(_this.showTypeBtn.isActive() ? _this.data.onid : 0);
+ _this.form.doAction('submit');
- //console.log(_this.current_obj_btn.getEl().dom.className);
- _this.dialog.uploadProgress.defer(1000, _this.dialog);
+ //_this.dialog.uploadProgress.defer(1000, _this.dialog);
});