Pman.Dialog.CmsApplyStyleSheets.js
},
{
"listeners" : {
- "click" : "function (_self, e)\n{\n var stylesheets = _this.form.findField('stylesheets').getValue();\n \n var v = [];\n \n if(res.stylesheets.length){\n var css = res.stylesheets.split(\"\\n\");\n \n Roo.each(css, function(c){\n if(!c.length){\n return;\n }\n \n c = c.replace('{rootURL}', rootURL);\n \n v.push(c);\n });\n \n _this.form.findField('stylesheets').setValue(v.join(\"\\n\"));\n }\n \n _this.form.doAction(\"submit\");\n}"
+ "click" : "function (_self, e)\n{\n var stylesheets = _this.form.findField('_stylesheets').getValue();\n \n var v = [];\n \n if(res.stylesheets.length){\n var css = res.stylesheets.split(\"\\n\");\n \n Roo.each(css, function(c){\n if(!c.length){\n return;\n }\n \n c = c.replace('{rootURL}', rootURL);\n \n v.push(c);\n });\n \n _this.form.findField('_stylesheets').setValue(v.join(\"\\n\"));\n }\n \n _this.form.doAction(\"submit\");\n}"
},
"text" : "OK",
"xtype" : "Button",
listeners : {
click : function (_self, e)
{
- var stylesheets = _this.form.findField('stylesheets').getValue();
+ var stylesheets = _this.form.findField('_stylesheets').getValue();
var v = [];
v.push(c);
});
- _this.form.findField('stylesheets').setValue(v.join("\n"));
+ _this.form.findField('_stylesheets').setValue(v.join("\n"));
}
_this.form.doAction("submit");