"name" : "Pman.Tab.AdminEnum",
"parent" : "Pman.Tab.Admin",
"title" : "Pman.Tab.AdminEnum",
- "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminEnum.bjs",
+ "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminEnum.bjs",
"permname" : "",
"modOrder" : "500",
"strings" : {
"4d3d769b812b6faa6b76e1a8abaece2d" : "Active",
"f2a6c498fb90ee345d997f888fce3b18" : "Delete",
"49ee3087348e8d44e1feda1917443987" : "Name",
- "7215ee9c7d9dc229d2921a40e899ec5f" : " "
+ "d41d8cd98f00b204e9800998ecf8427e" : " "
+ },
+ "named_strings" : {
+ "search_fieldLabel" : "13348442cc6a27032d2b4aa28b75a5d3"
},
"items" : [
{
"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",
"items" : [
{
"listeners" : {
- "|click" : "function()\n{\n \n // if we do not have a selected type... - what should we show..?\n \n \n var s = _this.egrid.getSelectionModel().getSelectedCell();\n \n\n if (!s) {\n Roo.MessageBox.alert(\"Error\", \"Select a pulldown\");\n }\n \n var d = _this.egrid.dataSource.getAt(s[0]);\n \n\n var ds = _this.grid.getDataSource();\n\n var add = ds.reader.newRow({ \n id: 0, \n display_name : '', \n name : '', \n etype: d.data.name, \n active: 1, \n seqid: 0\n });\n\n ds.insert(0 , add); \n \n _this.grid.startEditing(0, _this.grid.colModel.getIndexByDataIndex('name')); // name... \n}\n"
+ "|click" : "function()\n{\n \n // if we do not have a selected type... - what should we show..?\n \n \n var s = _this.egrid.getSelectionModel().getSelectedCell();\n \n\n if (!s) {\n Roo.MessageBox.alert(\"Error\", \"Select a pulldown\");\n }\n \n var d = _this.egrid.dataSource.getAt(s[0]);\n \n\n var ds = _this.grid.getDataSource();\n\n var add = ds.reader.newRow({ \n id: 0, \n display_name : '', \n name : '', \n etype: d.data.name, \n active: 1, \n seqid: 0\n });\n\n ds.insert(0 , add); \n \n _this.grid.startEditing(0, _this.grid.colModel.findColumnIndex('name')); // name... \n}\n"
},
"text" : "Add Value",
"xtype" : "Button",
"cls" : "x-btn-text-icon",
- "$ icon" : "baseURL + '/Pman/templates/images/search.gif'",
+ "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
"$ xns" : "Roo.Toolbar"
},
{
"listeners" : {
- "|click" : "function()\n{\n \n // if we do not have a selected type... - what should we show..?\n var et = _this.etypeCombo.getValue();\n \n if (!et) {\n Roo.MessageBox.alert(\"Error\", \"Select a pulldown\");\n return;\n }\n var sc = _this.grid.getSelectionModel().getSelectedCell();\n Roo.log(sc);\n var ds = _this.grid.ds.getAt(sc[0]);\n if (!ds) {\n Roo.MessageBox.alert(\"Error\", \"Select enum\");\n return;\n }\n \n Roo.log(ds);\n Pman.Dialog.AdminEnumImages.show({onid:ds.data.id}, function(){\n _this.grid.footer.onClick('first');\n });\n \n}\n"
+ "|click" : "function()\n{\n \n // if we do not have a selected type... - what should we show..?\n /*\n var et = _this.etypeCombo.getValue();\n \n if (!et) {\n Roo.MessageBox.alert(\"Error\", \"Select a pulldown\");\n return;\n }\n */\n \n var sc = _this.egrid.getSelectionModel().getSelectedCell();\n \n if (!sc) {\n Roo.MessageBox.alert(\"Error\", \"Select a pulldown\");\n return;\n }\n \n var ds = _this.egrid.ds.getAt(sc[0]);\n \n if (!ds) {\n Roo.MessageBox.alert(\"Error\", \"Select enum\");\n return;\n }\n \n Roo.log(ds);\n Pman.Dialog.AdminEnumImages.show({onid:ds.data.id}, function(){\n _this.grid.footer.onClick('first');\n });\n \n}\n"
},
"text" : "Add Image",
"xtype" : "Button",
},
{
"listeners" : {
- "|click" : "function()\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\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",