1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.CoreImportUrl = {
10 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
11 'c8c55f55be8cbe3141db7e26ab0a8b4e' :"Import URL",
12 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK",
13 'e6b391a8d2c4d45902a23a8b6585703d' :"URL"
19 show : function(data, cb)
27 this.dialog.show(this.data._el);
30 this.form.setValues(data);
31 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
39 this.dialog = Roo.factory({
40 xtype : 'LayoutDialog',
47 title : _this._strings['c8c55f55be8cbe3141db7e26ab0a8b4e'] /* Import URL */,
52 xtype : 'LayoutRegion',
59 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
61 click : function (_self, e)
71 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
73 click : function (_self, e)
75 _this.form.doAction("submit");
84 xtype : 'ContentPanel',
92 style : 'margin:10px;',
95 actioncomplete : function (_self, action)
97 if (action.type == 'setdata') {
98 if(_this.data.target){
99 _this.form.url = baseURL + _this.data.target;
101 // _this.dialog.el.mask("Loading");
\r
102 // if(_this.data.id*1 > 0)
\r
103 // this.load({ method: 'GET', params: { '_id' : _this.data.id }});
\r
107 if (action.type == 'load') {
\r
111 if (action.type =='submit') {
\r
113 //action.result.data
\r
114 _this.dialog.hide();
\r
115 // Roo.log(_this.callback);
\r
116 if (_this.callback) {
\r
117 _this.callback.call(_this, action.result.data);
\r
119 _this.form.reset();
\r
123 rendered : function (form)
133 fieldLabel : _this._strings['e6b391a8d2c4d45902a23a8b6585703d'] /* URL */,