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

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

index d53521f..d59f9b3 100644 (file)
              ]
             },
             {
-             "Number md" : 6,
+             "Number md" : 4,
              "String cls" : "text-right",
              "xtype" : "Column",
              "$ xns" : "Roo.bootstrap",
                "listeners" : {
                 "click" : "function (_self, e)\n{\n    var id = _this.data.onid;\n    \n    if(id*1 < 1){\n        Roo.MessageBox.alert('Error', 'Please save the email template first');\n        return;\n    }\n    \n    _this.uploadDL.inputEl().dom.click();\n}"
                },
+               "String size" : "sm",
                "xtype" : "Button",
                "$ xns" : "Roo.bootstrap",
                "String html" : "<i class=\"fa fa-upload\"></i> Upload Image",
                 "render" : "function (_self)\n{\n    _this.deleteBtn = this;\n    \n    this.hide();\n}",
                 "click" : "function (_self, e)\n{\n    if (_this.masonry.getSelected().length > 1) {\n        Roo.bootstrap.MessageBox.alert('Cannot delete the images !','Please select one image only');\n        return;\n    }\n    \n    if (_this.masonry.getSelected().length < 1) {\n        Roo.bootstrap.MessageBox.alert('Cannot delete any image!', 'Please select an image');\n        return;\n    }\n    \n    Roo.bootstrap.MessageBox.confirm(\"Confirm\", \"Are sure you want to delete this image?\", function (v){\n        if (v != 'yes') {\n            return;\n        }\n        \n        new Pman.Request({\n            url : baseURL + '/Roo/Images.php',\n            method: 'POST',\n            params : {\n                _delete : Roo.bootstrap.MasonryBrick.get(_this.masonry.getSelected()[0]).imageObj.id\n            },\n            success : function()\n            {\n//                _this.masonry.removeBrick(_this.masonry.getSelected()[0]);\n                _this.masonry.load();\n            }\n        });\n    });\n}"
                },
+               "String size" : "sm",
                "String weight" : "default",
                "xtype" : "Button",
                "$ xns" : "Roo.bootstrap",
index c172eca..defe2cb 100644 (file)
@@ -383,13 +383,14 @@ Roo.apply(Pman.Dialog.BAdminImageManager.prototype, {
              {
               xtype : 'Column',
               cls : 'text-right',
-              md : 6,
+              md : 4,
               xns : Roo.bootstrap,
               '|xns' : 'Roo.bootstrap',
               items  : [
                {
                 xtype : 'Button',
                 html : _this._strings['5350277f16d9998c57fa7e1d17be2a76'] /* <i class="fa fa-upload"></i> Upload Image */,
+                size : 'sm',
                 weight : 'primary',
                 listeners : {
                  click : function (_self, e)
@@ -410,6 +411,7 @@ Roo.apply(Pman.Dialog.BAdminImageManager.prototype, {
                {
                 xtype : 'Button',
                 html : _this._strings['ed807858fcb68abdd180481f1fcba5c5'] /* <i class="fa fa-trash"></i> Delete */,
+                size : 'sm',
                 style : 'margin-left: 15px;',
                 weight : 'default',
                 listeners : {