"name" : "Pman.Dialog.AdminEnumImages",
"parent" : "",
"title" : "",
- "path" : "/home/benny/gitlive/Pman.Admin/Pman.Dialog.AdminEnumImages.bjs",
+ "path" : "/home/benny/gitlive/web.hhyc_membership_system/Pman.Admin/Pman.Dialog.AdminEnumImages.bjs",
"permname" : "",
"modOrder" : "001",
"strings" : {
"show" : "function (_self)\n{\n _this.grid.footer.onClick('first');\n}"
},
"modal" : true,
- "title" : "Add / Edit Images",
"xtype" : "LayoutDialog",
+ "title" : "Add / Edit Images",
"width" : 900,
"$ xns" : "Roo",
"height" : 500,
"listeners" : {
"|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
},
+ "background" : false,
"region" : "center",
"fitToframe" : true,
- "background" : false,
"title" : "Images",
"xtype" : "GridPanel",
"fitContainer" : true,
},
{
"$ url" : "baseURL + '/Roo/Images.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
}
},
{
"listeners" : {
- "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n \n if (!s || s.length != 1) {\n Roo.MessageBox.alert(\"Error\", \"Select a single image to edit\");\n return;\n }\n var data = _this.grid.getDataSource().getById(s[0].data.id).data;\n console.log(data);\n Pman.Dialog.Image.show(data, function() {\n _this.grid.footer.onClick('first');\n });\n \n }\n "
+ "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n \n if (!s || s.length != 1) {\n Roo.MessageBox.alert(\"Error\", \"Select a single image to edit\");\n return;\n }\n var data = _this.grid.getDataSource().getById(s[0].data.id).data;\n \n Pman.Dialog.Image.show(data, function() {\n _this.grid.footer.onClick('first');\n });\n \n}\n "
},
"text" : "Edit",
"xtype" : "Button",
},
{
"xtype" : "ColumnModel",
- "header" : "Image",
"width" : 100,
+ "header" : "Image",
"$ 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",
- "header" : "Title",
"width" : 100,
+ "header" : "Title",
"$ 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[]",