sync
[Pman.Admin] / Pman.Tab.AdminContactsGroup.js
index da2db9d..c248e61 100644 (file)
@@ -7,13 +7,13 @@ Roo.namespace('Pman.Tab');
 Pman.Tab.AdminContactsGroup = new Roo.XComponent({
 
  _strings : {
-  'cc17acc174872a7178dc700931150295' :"Manage Groups?",
   'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
   'a37ede293936e29279ed543129451ec3' :"Groups",
   '7dce122004969d56ae2e0245cb754d35' :"Edit",
   '4d1c8263ba1036754f8db14a98f9f006' :"Reload",
   'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
-  '49ee3087348e8d44e1feda1917443987' :"Name"
+  '49ee3087348e8d44e1feda1917443987' :"Name",
+  'aba9f7d7443652e858969bfc280690b1' :"Manage Groups"
  },
 
   part     :  ["Admin", "ContactsGroup" ],
@@ -23,7 +23,7 @@ Pman.Tab.AdminContactsGroup = new Roo.XComponent({
   name     : "Pman.Tab.AdminContactsGroup",
   disabled : false, 
   permname : '', 
-  _tree : function()
+  _tree : function(_data)
   {
    var _this = this;
    var MODULE = this;
@@ -33,7 +33,7 @@ Pman.Tab.AdminContactsGroup = new Roo.XComponent({
    fitContainer : true,
    fitToframe : true,
    region : 'west',
-   tableName : 'Groups',
+   tableName : 'core_group',
    title : _this._strings['a37ede293936e29279ed543129451ec3'] /* Groups */,
    listeners : {
     activate : function() {
@@ -83,7 +83,7 @@ Pman.Tab.AdminContactsGroup = new Roo.XComponent({
      items  : [
       {
        xtype : 'Button',
-       text : _this._strings['cc17acc174872a7178dc700931150295'] /* Manage Groups? */,
+       text : _this._strings['aba9f7d7443652e858969bfc280690b1'] /* Manage Groups */,
        xns : Roo.Toolbar,
        '|xns' : 'Roo.Toolbar',
        menu : {
@@ -146,7 +146,7 @@ Pman.Tab.AdminContactsGroup = new Roo.XComponent({
           listeners : {
            click : function()
             {
-                 Pman.genericDelete(_this, 'Groups'); 
+                 Pman.genericDelete(_this, 'core_group'); 
             }
           },
           xns : Roo.menu,
@@ -182,7 +182,10 @@ Pman.Tab.AdminContactsGroup = new Roo.XComponent({
       beforeload : function (_self, o)
        {
            o.params = o.params || {};
+           
            o.params.type =2;
+           
+           o.params._add_everyone = 1;
        },
       load : function (_self, records, options)
        {
@@ -198,7 +201,7 @@ Pman.Tab.AdminContactsGroup = new Roo.XComponent({
      proxy : {
       xtype : 'HttpProxy',
       method : 'GET',
-      url : baseURL + '/Roo/Groups.php',
+      url : baseURL + '/Roo/core_group',
       xns : Roo.data,
       '|xns' : 'Roo.data'
      },