Pman.Dialog.AdminEnumImages.bjs
authorbenny <benny@roojs.com>
Thu, 12 Jul 2018 08:07:53 +0000 (16:07 +0800)
committerbenny <benny@roojs.com>
Thu, 12 Jul 2018 08:07:53 +0000 (16:07 +0800)
Pman.Dialog.AdminEnumImages.js

Pman.Dialog.AdminEnumImages.bjs
Pman.Dialog.AdminEnumImages.js

index dbf29c8..ff26313 100644 (file)
           },
           {
            "listeners" : {
-            "|click" : "function()\n{\n    var ids = [];\n    \n    var sc = _this.grid.getSelectionModel().getSelections();\n    console.log(sc);\n    if (!sc.length) {\n        Roo.MessageBox.alert(\"Error\", \"Select rows by clicking the row\");\n        return;\n    }\n    Roo.each(sc, function(v){\n        ids.push(v.id);\n    });\n    Roo.MessageBox.confirm(\n        \"Confirm\", \n        \"Confirm Deletion of selected rows (some rows can not be deleted if they are referenced elsewhere\", \n        function(res) {\n            if(res != 'yes') {\n                return;\n            }\n            new Pman.Request({\n                method : 'POST',\n                url : baseURL + '/Roo/Images',\n                params : {\n                    _delete  : ids.join(',')\n                },\n                success : function() {\n                    _this.grid.footer.onClick('refresh');\n                }\n            });\n        }\n    );\n}\n        "
+            "|click" : "function()\n{\n    var ids = [];\n    \n    var sc = _this.grid.getSelectionModel().getSelections();\n    \n    if (!sc.length) {\n        Roo.MessageBox.alert(\"Error\", \"Select rows by clicking the row\");\n        return;\n    }\n    Roo.each(sc, function(v){\n        ids.push(v.id);\n    });\n    Roo.MessageBox.confirm(\n        \"Confirm\", \n        \"Confirm Deletion of selected rows (some rows can not be deleted if they are referenced elsewhere\", \n        function(res) {\n            if(res != 'yes') {\n                return;\n            }\n            new Pman.Request({\n                method : 'POST',\n                url : baseURL + '/Roo/Images',\n                params : {\n                    _delete  : ids.join(',')\n                },\n                success : function() {\n                    _this.grid.footer.onClick('refresh');\n                }\n            });\n        }\n    );\n}\n        "
            },
            "text" : "Delete",
            "xtype" : "Button",
index 3c18054..0bfbce9 100644 (file)
@@ -194,7 +194,7 @@ Pman.Dialog.AdminEnumImages = {
                 var ids = [];
                 
                 var sc = _this.grid.getSelectionModel().getSelections();
-                console.log(sc);
+                
                 if (!sc.length) {
                     Roo.MessageBox.alert("Error", "Select rows by clicking the row");
                     return;