DataObjects/Cms_page.php
[Pman.Cms] / Pman.Dialog.CmsApplyStyleSheets.js
index 5896955..f431ec2 100644 (file)
@@ -73,25 +73,8 @@ Pman.Dialog.CmsApplyStyleSheets = {
       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");
         }
@@ -107,7 +90,7 @@ Pman.Dialog.CmsApplyStyleSheets = {
       items  : [
        {
         labelAlign : 'top',
-        method : 'GET',
+        method : 'POST',
         style : 'margin:10px;',
         url : baseURL + '/Roo/Cms_page.php',
         xns : Roo.form,
@@ -137,6 +120,12 @@ Pman.Dialog.CmsApplyStyleSheets = {
                    return;
               }
           },
+         actionfailed : function (_self, action)
+          {
+              _this.dialog.el.unmask();
+              
+              Pman.standardActionFailed(_self, action);
+          },
          rendered : function (form)
           {
               _this.form= form;
@@ -147,7 +136,7 @@ Pman.Dialog.CmsApplyStyleSheets = {
           allowBlank : true,
           fieldLabel : _this._strings['85e8231d44b865e90f6a39b356ded9bd'] /* Stylesheets */,
           height : 200,
-          name : 'stylesheets',
+          name : '_stylesheets',
           width : 550,
           xns : Roo.form,
           '|xns' : 'Roo.form',