listeners : {
click : function (_self, e)
{
- var stylesheets = _this.form.findField('stylesheets').getValue();
+ var stylesheets = _this.form.findField('_stylesheets').getValue();
- var v = [];
-
- if(res.stylesheets.length){
- var css = res.stylesheets.split("\n");
-
- Roo.each(css, function(c){
- if(!c.length){
- return;
- }
-
- c = c.replace('{rootURL}', rootURL);
-
- v.push(c);
- });
-
- _this.form.findField('stylesheets').setValue(v.join("\n"));
- }
_this.form.doAction("submit");
}
items : [
{
labelAlign : 'top',
- method : 'GET',
+ method : 'POST',
style : 'margin:10px;',
url : baseURL + '/Roo/Cms_page.php',
xns : Roo.form,
return;
}
},
+ actionfailed : function (_self, action)
+ {
+ _this.dialog.el.unmask();
+
+ Pman.standardActionFailed(_self, action);
+ },
rendered : function (form)
{
_this.form= form;
allowBlank : true,
fieldLabel : _this._strings['85e8231d44b865e90f6a39b356ded9bd'] /* Stylesheets */,
height : 200,
- name : 'stylesheets',
+ name : '_stylesheets',
width : 550,
xns : Roo.form,
'|xns' : 'Roo.form',