1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.CoreImportUrl = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
43 xtype: 'ContentPanel',
51 actioncomplete : function (_self, action)
53 if (action.type == 'setdata') {
54 if(_this.data.target){
55 _this.form.url = baseURL + _this.data.target;
57 // _this.dialog.el.mask("Loading");
\r
58 // if(_this.data.id*1 > 0)
\r
59 // this.load({ method: 'GET', params: { '_id' : _this.data.id }});
\r
63 if (action.type == 'load') {
\r
67 if (action.type =='submit') {
\r
69 //action.result.data
\r
70 _this.dialog.hide();
\r
71 // Roo.log(_this.callback);
\r
72 if (_this.callback) {
\r
73 _this.callback.call(_this, action.result.data);
\r
79 rendered : function (form)
85 style : 'margin:10px;',
102 xtype: 'LayoutRegion',
110 click : function (_self, e)
121 click : function (_self, e)
123 _this.form.doAction("submit");