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

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

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