Pman.Dialog.CmsApplyStyleSheets.bjs
authorEdward <edward@roojs.com>
Fri, 19 Jun 2015 09:09:14 +0000 (17:09 +0800)
committerEdward <edward@roojs.com>
Fri, 19 Jun 2015 09:09:14 +0000 (17:09 +0800)
Pman.Dialog.CmsApplyStyleSheets.js

Pman.Dialog.CmsApplyStyleSheets.bjs
Pman.Dialog.CmsApplyStyleSheets.js

index a028ec1..8242fce 100644 (file)
@@ -70,7 +70,7 @@
     },
     {
      "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",
index a9d0ea5..21c808c 100644 (file)
@@ -73,7 +73,7 @@ Pman.Dialog.CmsApplyStyleSheets = {
       listeners : {
        click : function (_self, e)
         {
-            var stylesheets = _this.form.findField('stylesheets').getValue();
+            var stylesheets = _this.form.findField('_stylesheets').getValue();
             
             var v = [];
             
@@ -90,7 +90,7 @@ Pman.Dialog.CmsApplyStyleSheets = {
                     v.push(c);
                 });
                 
-                _this.form.findField('stylesheets').setValue(v.join("\n"));
+                _this.form.findField('_stylesheets').setValue(v.join("\n"));
             }
             
             _this.form.doAction("submit");