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.CmsApplyStyleSheets = {
10 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
11 '4f6a786f206270451624db40d61d9855' :"Add Stylesheets",
12 '85e8231d44b865e90f6a39b356ded9bd' :"Stylesheets",
13 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
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({
45 title : _this._strings['4f6a786f206270451624db40d61d9855'] /* Add Stylesheets */,
49 xtype : 'LayoutDialog',
53 xtype : 'LayoutRegion'
57 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
62 click : function (_self, e)
69 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
74 click : function (_self, e)
76 var stylesheets = _this.form.findField('_stylesheets').getValue();
79 _this.form.doAction("submit");
89 xtype : 'ContentPanel',
94 style : 'margin:10px;',
95 url : baseURL + '/Roo/Cms_page.php',
100 actioncomplete : function(_self,action)
102 if (action.type == 'setdata') {
104 this.load({ method: 'GET', params: { '_stylesheets' : 1 }});
107 if (action.type == 'load') {
108 _this.dialog.el.unmask();
111 if (action.type =='submit') {
113 _this.dialog.el.unmask();
116 if (_this.callback) {
117 _this.callback.call(_this, _this.form.getValues());
123 actionfailed : function (_self, action)
125 _this.dialog.el.unmask();
127 Pman.standardActionFailed(_self, action);
129 rendered : function (form)
137 fieldLabel : _this._strings['85e8231d44b865e90f6a39b356ded9bd'] /* Stylesheets */,
139 name : '_stylesheets',