Pman.Tab.AdminContactsGroup.bjs
authoredward <edward@roojs.com>
Mon, 7 Nov 2016 04:31:54 +0000 (12:31 +0800)
committeredward <edward@roojs.com>
Mon, 7 Nov 2016 04:31:54 +0000 (12:31 +0800)
Pman.Tab.AdminContactsGroup.js

Pman.Tab.AdminContactsGroup.bjs
Pman.Tab.AdminContactsGroup.js

index 5280c40..a42fc49 100644 (file)
@@ -6,22 +6,22 @@
  "permname" : "",
  "modOrder" : "001",
  "strings" : {
+  "cc17acc174872a7178dc700931150295" : "Manage Groups?",
   "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
   "a37ede293936e29279ed543129451ec3" : "Groups",
   "7dce122004969d56ae2e0245cb754d35" : "Edit",
   "4d1c8263ba1036754f8db14a98f9f006" : "Reload",
   "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
-  "49ee3087348e8d44e1feda1917443987" : "Name",
-  "aba9f7d7443652e858969bfc280690b1" : "Manage Groups"
+  "49ee3087348e8d44e1feda1917443987" : "Name"
  },
  "items" : [
   {
    "listeners" : {
     "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.ds.load({});\n    }\n}"
    },
+   "region" : "west",
    "fitToframe" : true,
    "background" : true,
-   "region" : "west",
    "title" : "Groups",
    "xtype" : "GridPanel",
    "fitContainer" : true,
@@ -34,8 +34,8 @@
       "|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",
-     "xtype" : "Grid",
      "enableDrop" : true,
+     "xtype" : "Grid",
      "ddGroup" : "groupDD",
      "loadMask" : true,
      "$ xns" : "Roo.grid",
@@ -54,8 +54,8 @@
        "items" : [
         {
          "$ url" : "baseURL + '/Roo/Groups.php'",
-         "xtype" : "HttpProxy",
          "method" : "GET",
+         "xtype" : "HttpProxy",
          "$ xns" : "Roo.data",
          "* prop" : "proxy"
         },
@@ -76,7 +76,7 @@
        "* prop" : "toolbar",
        "items" : [
         {
-         "text" : "Manage Groups",
+         "text" : "Manage Groups?",
          "xtype" : "Button",
          "$ xns" : "Roo.Toolbar",
          "items" : [
       },
       {
        "xtype" : "ColumnModel",
-       "width" : 200,
        "header" : "Name",
+       "width" : 200,
        "$ renderer" : "function(v,x,r) { \n    if (r.data.id == -1) {\n        return '<b>' + \"Not in a Group\" + '</b>';\n    }\n    if ((r.data.id == 0) && (_this.type == 0)) {\n        return '<b>' + \"All Staff (Default Permissions)\" + '</b>';\n    }\n    if ((r.data.id == 0) && (_this.type == 2)) {\n        return '<b>' + \"Everybody\" + '</b>';\n    }\n    if (r.data.id == 0) {\n        return '<b>' + \"All Staff\" + '</b>';\n    }\n    if (v == 'Administrators') {\n        return '<b>' + \"Adminstrators\" + '</b>';\n    }\n    if (r.data.leader) {\n        return v + ' (' + r.data.leader_name + ')';\n    }\n    \n    return v;\n}",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
index 25e4c01..da2db9d 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",
-  'aba9f7d7443652e858969bfc280690b1' :"Manage Groups"
+  '49ee3087348e8d44e1feda1917443987' :"Name"
  },
 
   part     :  ["Admin", "ContactsGroup" ],
@@ -83,7 +83,7 @@ Pman.Tab.AdminContactsGroup = new Roo.XComponent({
      items  : [
       {
        xtype : 'Button',
-       text : _this._strings['aba9f7d7443652e858969bfc280690b1'] /* Manage Groups */,
+       text : _this._strings['cc17acc174872a7178dc700931150295'] /* Manage Groups? */,
        xns : Roo.Toolbar,
        '|xns' : 'Roo.Toolbar',
        menu : {