Pman.Dialog.AdminEnumImages.bjs
authorbenny <benny@roojs.com>
Thu, 6 Sep 2018 06:41:43 +0000 (14:41 +0800)
committerbenny <benny@roojs.com>
Thu, 6 Sep 2018 06:41:43 +0000 (14:41 +0800)
Pman.Dialog.AdminEnumImages.js

Pman.Dialog.AdminEnumImages.bjs

index 44c8b94..90b1346 100644 (file)
@@ -24,8 +24,8 @@
     "show" : "function (_self)\n{\n    _this.grid.footer.onClick('first');\n}"
    },
    "modal" : true,
-   "xtype" : "LayoutDialog",
    "title" : "Add / Edit Images",
+   "xtype" : "LayoutDialog",
    "width" : 900,
    "$ xns" : "Roo",
    "height" : 500,
@@ -39,9 +39,9 @@
      "listeners" : {
       "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
      },
+     "fitToframe" : true,
      "background" : false,
      "region" : "center",
-     "fitToframe" : true,
      "title" : "Images",
      "xtype" : "GridPanel",
      "fitContainer" : true,
@@ -81,8 +81,8 @@
           },
           {
            "$ url" : "baseURL + '/Roo/Images.php'",
-           "xtype" : "HttpProxy",
            "method" : "GET",
+           "xtype" : "HttpProxy",
            "$ xns" : "Roo.data",
            "* prop" : "proxy"
           }
         },
         {
          "xtype" : "ColumnModel",
-         "width" : 100,
          "header" : "Image",
+         "width" : 100,
          "$ renderer" : "function(v,x,r) { return String.format('<img src=\"{0}/Images/Thumb/100/{1}/{2}\" width=\"100\">', baseURL, v, r.data.filename); }",
          "$ xns" : "Roo.grid",
          "* prop" : "colModel[]",
         },
         {
          "xtype" : "ColumnModel",
-         "width" : 100,
          "header" : "Title",
+         "width" : 100,
          "$ renderer" : "function(v,x,r) {\n//     var surl = r.json.url.replace(/\\/release.php\\/Images\\//, '/i/').replace(/\\/([0-9]+)\\/.*$/, '/$1');;\n  //   var svurl = r.json.url_view.replace(/\\/release.php\\/Images\\//, '/i/').replace(/\\/([0-9]+)\\/.*$/, '/$1');;\n    //  return String.format(\n      //    'Download Url : <a href=\"http://{0}{1}\" target=\"_new\">http://{0}{1}</a>' + \n        //  '<br/>View Url : <a href=\"http://{0}{2}\" target=\"_new\">http://{0}{2}</a>' + \n          //'<br/><b>{3}</b><br/>{4}</i>', \n         // window.location.host, surl, svurl,\n          // v, r.json.descript); \n     \n    }",
          "$ xns" : "Roo.grid",
          "* prop" : "colModel[]",