old/Pman.Tab.AdminPermManager.bjs
authoredward <edward@roojs.com>
Tue, 10 Oct 2017 06:29:41 +0000 (14:29 +0800)
committeredward <edward@roojs.com>
Tue, 10 Oct 2017 06:29:41 +0000 (14:29 +0800)
old/Pman.Tab.AdminPermManager.js

old/Pman.Tab.AdminPermManager.bjs

index 6d2a8cb..903a89b 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Tab.AdminPermManager",
  "parent" : "Pman.Tab.Admin",
  "title" : "Pman.Tab.AdminPermManager",
- "path" : "/home/khlau/gitlive/web.coba/Pman.Admin/old/Pman.Tab.AdminPermManager.bjs",
+ "path" : "/home/edward/gitlive/Pman.Admin/old/Pman.Tab.AdminPermManager.bjs",
  "permname" : "Core.Groups",
  "modOrder" : "700",
  "strings" : {
      "items" : [
       {
        "xtype" : "LayoutRegion",
-       "$ xns" : "Roo",
        "tabPosition" : "top",
+       "$ xns" : "Roo",
        "* prop" : "center"
       },
       {
        "xtype" : "LayoutRegion",
-       "$ xns" : "Roo",
        "width" : 200,
+       "$ xns" : "Roo",
        "* prop" : "west"
       },
       {
        "listeners" : {
         "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.ds.load({});\n    }\n}"
        },
+       "fitToframe" : true,
        "background" : true,
        "region" : "west",
-       "fitToframe" : true,
        "title" : "Groups",
        "xtype" : "GridPanel",
        "fitContainer" : true,
@@ -59,8 +59,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",
@@ -79,8 +79,8 @@
            "items" : [
             {
              "$ url" : "baseURL + '/Roo/core_group.php'",
-             "xtype" : "HttpProxy",
              "method" : "GET",
+             "xtype" : "HttpProxy",
              "$ xns" : "Roo.data",
              "* prop" : "proxy"
             },
           },
           {
            "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[]",