Pman.Dialog.CmsApplyStyleSheets.js
},
{
"listeners" : {
- "click" : "function (_self, e)\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 \n _this.form.doAction(\"submit\");\n}"
},
"text" : "OK",
"xtype" : "Button",
listeners : {
click : function (_self, e)
{
+ 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.doAction("submit");
}
}