"name" : "Pman.Tab.AdminContactsGroup",
"parent" : "Pman.Tab.AdminContactsManager",
"title" : "Pman.Tab.AdminContactsGroup",
- "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminContactsGroup.bjs",
+ "path" : "/home/benny/gitlive/web.hhyc_membership_system/Pman.Admin/Pman.Tab.AdminContactsGroup.bjs",
"permname" : "",
"modOrder" : "001",
"strings" : {
"xtype" : "GridPanel",
"fitContainer" : true,
"$ xns" : "Roo",
- "tableName" : "Groups",
+ "tableName" : "core_group",
"items" : [
{
"listeners" : {
- "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n var s = this.getDataSource().getAt(rowIndex);\n if (s.data.id < 1 ) {\n return;\n }\n _this.dialog.show( s.data, function() {\n _this.ds.load({});\n }); \n}\n",
+ "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) { \n return; \n }\n var s = this.getDataSource().getAt(rowIndex);\n if (s.data.id < 1 ) {\n return;\n }\n _this.dialog.show( s.data, function() {\n _this.ds.load({});\n }); \n}\n",
"|render" : "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.Groups;\n if (_this.panel.active) {\n _this.grid.ds.load({});\n }\n}"
},
"autoExpandColumn" : "name",
"items" : [
{
"listeners" : {
- "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n o.params.type =2;\n}",
+ "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n o.params.type =2;\n \n o.params._add_everyone = 1;\n}",
"load" : "function (_self, records, options)\n{\n var sm = _this.grid.getSelectionModel();\n if (!sm.getSelections().length) {\n sm.selectFirstRow();\n }\n Pman.Tab.AdminContacts.grid.footer.onClick('first');\n}"
},
"xtype" : "Store",
"* prop" : "dataSource",
"items" : [
{
- "$ url" : "baseURL + '/Roo/Groups.php'",
+ "$ url" : "baseURL + '/Roo/core_group'",
"method" : "GET",
"xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"items" : [
{
"listeners" : {
- "|click" : "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0, type: 2 } , function() {\n _this.grid.ds.load({});\n }); \n}\n"
+ "|click" : "function()\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( { id : 0, type: 2 } , function() {\n _this.grid.ds.load({});\n }); \n}\n"
},
"text" : "Add",
"xtype" : "Item",
},
{
"listeners" : {
- "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (s[0].data.id < 1 ) {\n return;\n }\n if (!_this.dialog) return;\n _this.dialog.show(s[0].data, function() {\n _this.grid.ds.load({});\n }); \n \n}\n"
+ "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (s[0].data.id < 1 ) {\n return;\n }\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show(s[0].data, function() {\n _this.grid.ds.load({});\n }); \n \n}\n"
},
"text" : "Edit",
"xtype" : "Item",
},
{
"listeners" : {
- "|click" : "function()\n{\n Pman.genericDelete(_this, 'Groups'); \n}\n "
+ "|click" : "function()\n{\n Pman.genericDelete(_this, 'core_group'); \n}\n "
},
"text" : "Delete",
"xtype" : "Item",