X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Tab.AdminEnum.bjs;h=bc8818a35c9f98166826d9e3c37f2dc45a020f81;hp=5eebca70d1a799cd64159223f49fcf4a529f3fa3;hb=HEAD;hpb=0d958eb2268a90645017f6a4c6fd0ced10590687
diff --git a/Pman.Tab.AdminEnum.bjs b/Pman.Tab.AdminEnum.bjs
index 5eebca7..bc8818a 100644
--- a/Pman.Tab.AdminEnum.bjs
+++ b/Pman.Tab.AdminEnum.bjs
@@ -2,7 +2,7 @@
"name" : "Pman.Tab.AdminEnum",
"parent" : "Pman.Tab.Admin",
"title" : "Pman.Tab.AdminEnum",
- "path" : "/home/benny/gitlive/web.hhyc_membership_system/Pman.Admin/Pman.Tab.AdminEnum.bjs",
+ "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminEnum.bjs",
"permname" : "",
"modOrder" : "500",
"strings" : {
@@ -26,11 +26,14 @@
"49ee3087348e8d44e1feda1917443987" : "Name",
"d41d8cd98f00b204e9800998ecf8427e" : " "
},
+ "named_strings" : {
+ "search_fieldLabel" : "13348442cc6a27032d2b4aa28b75a5d3"
+ },
"items" : [
{
"xtype" : "NestedLayoutPanel",
- "String region" : "center",
"$ xns" : "Roo",
+ "String region" : "center",
"String title" : "Pulldown Options",
"items" : [
{
@@ -64,8 +67,8 @@
{
"listeners" : {
"beforeedit" : "function (e)\n{\n if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n return false;\n }\n}",
- "|render" : "function() \n{\n _this.egrid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.epanel.active) {\n this.footer.onClick('first');\n }\n}",
"cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'active') {\n return;\n }\n \n var rec = _this.grid.ds.getAt(rowIndex);\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n \n \n}",
+ "|render" : "function() \n{\n _this.egrid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.epanel.active) {\n this.footer.onClick('first');\n }\n}",
"celldblclick" : "function (_self, rowIndex, columnIndex, e)\n{\n var rec = _this.egrid.ds.getAt(rowIndex);\n Pman.Dialog.AdminEnumType.show(rec.data,function(){\n \n _this.egrid.footer.onClick('first');\n });\n}",
"afteredit" : "function (e)\n{\n e.record.commit(); \n}"
},
@@ -89,8 +92,8 @@
"items" : [
{
"$ url" : "baseURL + '/Roo/core_enum.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
@@ -141,8 +144,8 @@
},
{
"xtype" : "ColumnModel",
- "width" : 200,
"header" : "Pulldown",
+ "width" : 200,
"$ renderer" : "function(v,x,r) { \n\n\n return String.format('{0}', (''+v).length ? v : r.data.name, r.data.name); \n}",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
@@ -150,8 +153,8 @@
},
{
"xtype" : "ColumnModel",
- "width" : 50,
"header" : "Active",
+ "width" : 50,
"$ renderer" : "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '';\n \n }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
@@ -165,9 +168,9 @@
"listeners" : {
"|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
},
- "region" : "center",
"fitToframe" : true,
"background" : false,
+ "region" : "center",
"title" : "Pulldown Options",
"xtype" : "GridPanel",
"$ xns" : "Roo",
@@ -201,8 +204,8 @@
"items" : [
{
"$ url" : "baseURL + '/Roo/core_enum.php'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
@@ -316,7 +319,7 @@
},
{
"listeners" : {
- "|click" : "function()\n{\n console.log(_this.grid);\n var s = _this.grid.getSelectionModel().getSelections();\n \n if (!s.length) {\n Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n return;\n }\n \n var d = _this.grid.ds.getAt(s[0]);\n\n Pman.Dialog.AdminEnumMerge.show(d.data, function() {\n _this.grid.footer.onClick('refresh');\n }); \n \n}\n"
+ "|click" : "function()\n{\n\n var s = _this.grid.getSelectionModel().getSelectedCell();\n\n if (!s.length) {\n Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n return;\n }\n \n var d = _this.grid.ds.getAt(s[0]);\n console.log(Pman.Dialog);\n Pman.Dialog.AdminEnumMerge.show(d.data, function() {\n _this.grid.footer.onClick('refresh');\n }); \n \n}\n"
},
"text" : "Merge Option",
"xtype" : "Button",
@@ -328,8 +331,8 @@
},
{
"xtype" : "ColumnModel",
- "header" : "Internal #",
"width" : 75,
+ "header" : "Internal #",
"$ renderer" : "function(v,x,r) { \n var fmt = '{0}';\n if (r.selected) {\n fmt = '{0}';\n }\n return String.format(fmt, v); }",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
@@ -338,8 +341,8 @@
},
{
"xtype" : "ColumnModel",
- "header" : "Image",
"width" : 75,
+ "header" : "Image",
"$ renderer" : "function(v,x,r) { return String.format('', baseURL, v, r.data.images_id_filename); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
@@ -347,8 +350,8 @@
},
{
"xtype" : "ColumnModel",
- "width" : 200,
"header" : "Name",
+ "width" : 200,
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
@@ -371,8 +374,8 @@
},
{
"xtype" : "ColumnModel",
- "header" : "Display Name",
"width" : 200,
+ "header" : "Display Name",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,
@@ -395,8 +398,8 @@
},
{
"xtype" : "ColumnModel",
- "header" : "Active",
"width" : 75,
+ "header" : "Active",
"$ renderer" : "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '';\n \n }",
"$ xns" : "Roo.grid",
"Boolean sortable" : true,