DataObjects/Cms_page.php
[Pman.Cms] / Pman.Dialog.CmsApplyStyleSheets.js
index 340d68b..f431ec2 100644 (file)
@@ -73,11 +73,10 @@ Pman.Dialog.CmsApplyStyleSheets = {
       listeners : {
        click : function (_self, e)
         {
-            _this.dialog.hide();
+            var stylesheets = _this.form.findField('_stylesheets').getValue();
+            
             
-            if (_this.callback) {
-                _this.callback.call(_this, _this.form.getValues());
-             }
+            _this.form.doAction("submit");
         }
       }
      }
@@ -91,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,
@@ -121,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;
@@ -131,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',