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.BAdminImportUrl= function() {}
8 Roo.apply(Pman.Dialog.BAdminImportUrl.prototype, {
11 'c8c55f55be8cbe3141db7e26ab0a8b4e' :"Import URL",
12 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
13 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK",
14 'e6b391a8d2c4d45902a23a8b6585703d' :"URL"
20 show : function(data, cb)
28 this.dialog.show(this.data._el);
31 this.form.setValues(data);
32 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
40 this.dialog = Roo.factory({
42 title : _this._strings['c8c55f55be8cbe3141db7e26ab0a8b4e'] /* Import URL */,
44 '|xns' : 'Roo.bootstrap',
48 html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
51 click : function (_self, e)
57 '|xns' : 'Roo.bootstrap'
61 html : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
64 click : function (_self, e)
66 _this.form.doAction("submit");
70 '|xns' : 'Roo.bootstrap'
79 actioncomplete : function (_self, action)
81 if (action.type == 'setdata') {
82 if(_this.data.target){
83 _this.form.url = baseURL + _this.data.target;
88 if(_this.data.id*1 > 0) {
\r
89 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
94 if (action.type == 'load') {
\r
98 if (action.type =='submit') {
\r
99 //action.result.data
\r
100 _this.dialog.hide();
\r
101 //Roo.log(_this.callback);
\r
102 if (_this.callback) {
\r
103 _this.callback.call(_this, action.result.data);
\r
105 _this.form.reset();
\r
109 actionfailed : function (_self, action)
111 if (action.type == 'submit') {
113 Roo.bootstrap.MessageBox.alert("Cannot import from URL", "Invalid URL format");
116 render : function (_self)
122 '|xns' : 'Roo.bootstrap',
126 fieldLabel : _this._strings['e6b391a8d2c4d45902a23a8b6585703d'] /* URL */,
131 '|xns' : 'Roo.bootstrap'
139 Roo.apply(Pman.Dialog.BAdminImportUrl, Pman.Dialog.BAdminImportUrl.prototype);