Pman.Dialog.CmsApplyStyleSheets.bjs
authorEdward <edward@roojs.com>
Fri, 19 Jun 2015 08:40:31 +0000 (16:40 +0800)
committerEdward <edward@roojs.com>
Fri, 19 Jun 2015 08:40:31 +0000 (16:40 +0800)
Pman.Dialog.CmsApplyStyleSheets.js

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

index 2b52f7a..a028ec1 100644 (file)
@@ -35,7 +35,7 @@
      "items" : [
       {
        "listeners" : {
-        "actionfailed" : "function (_self, action)\n{\n    _this.dialog.el.unmask();\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"
        },
index 92ccc91..a9d0ea5 100644 (file)
@@ -140,6 +140,8 @@ Pman.Dialog.CmsApplyStyleSheets = {
          actionfailed : function (_self, action)
           {
               _this.dialog.el.unmask();
+              
+              Pman.standardActionFailed(_self, action);
           },
          rendered : function (form)
           {