Pman.Tab.CmsBlog.bjs
[Pman.Cms] / Pman.Dialog.CmsApplyStyleSheets.bjs
index 8a6575f..4e4bfc6 100644 (file)
      "items" : [
       {
        "listeners" : {
-        "|actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') {\n    \n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n\n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
+        "actionfailed" : "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    \n    Pman.standardActionFailed(_self, action);\n}",
+        "|actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') {\n        \n        this.load({ method: 'GET', params: { '_stylesheets' : 1 }});\n        return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n\n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
         "|rendered" : "function (form)\n{\n    _this.form= form;\n}\n"
        },
-       "$ url" : "baseURL + '/Roo/INGORE.php'",
-       "method" : "GET",
+       "$ url" : "baseURL + '/Roo/Cms_page.php'",
+       "method" : "POST",
        "xtype" : "Form",
        "style" : "margin:10px;",
        "String labelAlign" : "top",
@@ -52,7 +53,7 @@
          "allowBlank" : true,
          "Number height" : 200,
          "$ xns" : "Roo.form",
-         "name" : "stylesheets"
+         "name" : "_stylesheets"
         }
        ]
       }
@@ -69,7 +70,7 @@
     },
     {
      "listeners" : {
-      "click" : "function (_self, e)\n{\n    // do some checks?\n     \n    var data =  _this.form.getValues();\n \n    _this.dialog.hide();\n    \n    _this.callback(callbackData);\n    \n\n}"
+      "click" : "function (_self, e)\n{\n    var stylesheets = _this.form.findField('_stylesheets').getValue();\n    \n    \n    _this.form.doAction(\"submit\");\n}"
      },
      "text" : "OK",
      "xtype" : "Button",