"name" : "imageUpload"
},
{
+ "String actionMode" : "fieldEl",
"alwaysQuery" : true,
"listWidth" : 400,
"triggerAction" : "all",
"emptyText" : "Select image type",
"hiddenName" : "imgtype",
"minChars" : 2,
- "valueField" : "id",
+ "valueField" : "name",
"xtype" : "ComboBox",
"allowBlank" : true,
"typeAhead" : true,
"items" : [
{
"listeners" : {
- "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n o.params['etype'] = _this.data.etype;\n \n o.params['!id'] = _this.form.findField('id').getValue();\n // set more here\n}\n"
+ "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n o.params.etype = 'ImageType';\n \n o.params.active = 1;\n}\n"
},
"xtype" : "Store",
"remoteSort" : true,
"items" : [
{
"$ url" : "baseURL + '/Roo/Core_enum'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
},
{
"listeners" : {
- "click" : "function (_self, e)\n{\n // do some checks?\n \n //_this.dialog.el.mask(\"Sending\");\n _this.dialog.uploadComplete = false;\n _this.form.doAction('submit', {\n params: {\n ts : Math.random()\n } \n });\n _this.dialog.haveProgress = 0; // set to show..\n _this.dialog.uploadProgress.defer(1000, _this.dialog);\n\n}"
+ "click" : "function (_self, e)\n{\n // do some checks?\n \n //_this.dialog.el.mask(\"Sending\");\n _this.dialog.uploadComplete = false;\n _this.form.doAction('submit', {\n params: {\n ts : Math.random()\n }\n });\n _this.dialog.haveProgress = 0; // set to show..\n _this.dialog.uploadProgress.defer(1000, _this.dialog);\n\n}"
},
"text" : "Upload",
"xtype" : "Button",