if (action.type == 'setdata') {
if(_this.data.target){
_this.form.url = baseURL + _this.data.target;
- }\r
- // _this.dialog.el.mask("Loading");
- \r
+ }
+
+
+ /*\r
if(_this.data.id*1 > 0) {\r
this.load({ method: 'GET', params: { '_id' : _this.data.id }});
}\r
- \r
- return;\r
+ */\r
}
\r
if (action.type == 'load') {\r
if (action.type =='submit') {\r
//action.result.data\r
_this.dialog.hide();\r
- // Roo.log(_this.callback);\r
+ //Roo.log(_this.callback);\r
if (_this.callback) {\r
_this.callback.call(_this, action.result.data);\r
}\r
return;\r
}
},
+ actionfailed : function (_self, action)
+ {
+ if (action.type == 'submit') {
+
+ Roo.bootstrap.MessageBox.alert("Cannot import from URL", "Invalid URL format");
+ }
+ },
render : function (_self)
{
_this.form = this;