Pman.Dialog.BAdminImageManager.bjs
authorEdward <edward@roojs.com>
Mon, 19 Nov 2018 02:30:45 +0000 (10:30 +0800)
committerEdward <edward@roojs.com>
Mon, 19 Nov 2018 02:30:45 +0000 (10:30 +0800)
Pman.Dialog.BAdminImageManager.js

Pman.Dialog.BAdminImageManager.bjs
Pman.Dialog.BAdminImageManager.js

index a8b664a..e710e60 100644 (file)
@@ -78,7 +78,7 @@
         {
          "listeners" : {
           "actionfailed" : "function (_self, action)\n{\n    if (action.type == 'submit') {\n        Roo.log(\"Upload error\");\n        Roo.log(action);\n        \n        try {\n            \n            Roo.MessageBox.alert(\"Error\", action.result.errorMsg.split(/\\n/).join('<BR/>'));\n            \n        } catch(e) {\n            \n            Roo.MessageBox.alert(\"Error\", \"Saving failed = fix errors and try again\");\n        }\n        return;\n    }\n    \n    Roo.MessageBox.alert(\"Error\", \"Error loading details\"); \n}",
-          "actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') { \n        \n        this.url = _this.data._url ? baseURL + _this.data._url : baseURL + '/Roo/Images.php';\n        \n        this.el.dom.action = this.url;\n        \n        if (typeof(_this.data.timeout) != 'undefined') {\n            this.timeout = _this.data.timeout;\n        }\n        \n        this.findField('UPLOAD_IDENTIFIER').setValue(\n            (new Date() * 1) + '' + Math.random());\n        \n        _this.masonry.load();\n        \n        return;\n    }\n     \n   \n    if (action.type == 'load') {\n        \n        _this.data = action.result.data;\n        \n        return;\n    }\n    \n    \n    if (action.type == 'submit') { // only submitted here if we are \n        \n        _this.masonry.load();\n        \n        return; \n    }\n \n\n    \n}\n",
+          "actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') { \n        \n        _this.showType = 'All';\n        \n        this.url = _this.data._url ? baseURL + _this.data._url : baseURL + '/Roo/Images.php';\n        \n        this.el.dom.action = this.url;\n        \n        if (typeof(_this.data.timeout) != 'undefined') {\n            this.timeout = _this.data.timeout;\n        }\n        \n        this.findField('UPLOAD_IDENTIFIER').setValue(\n            (new Date() * 1) + '' + Math.random());\n        \n        _this.masonry.load();\n        \n        return;\n    }\n     \n   \n    if (action.type == 'load') {\n        \n        _this.data = action.result.data;\n        \n        return;\n    }\n    \n    \n    if (action.type == 'submit') { // only submitted here if we are \n        \n        _this.masonry.load();\n        \n        return; \n    }\n \n\n    \n}\n",
           "render" : "function (_self)\n{\n    _this.form = this;\n    \n}"
          },
          "style" : "display: none;",
index 437ad2f..67707ff 100644 (file)
@@ -132,6 +132,8 @@ Roo.apply(Pman.Dialog.BAdminImageManager.prototype, {
             {
                 if (action.type == 'setdata') { 
                     
+                    _this.showType = 'All';
+                    
                     this.url = _this.data._url ? baseURL + _this.data._url : baseURL + '/Roo/Images.php';
                     
                     this.el.dom.action = this.url;