sync
[Pman.Admin] / Pman.Dialog.AdminWatch.bjs
index 702a2eb..0a8a13f 100644 (file)
@@ -1,5 +1,5 @@
 {
-    "id": "roo-file-151",
+    "id": "roo-file-220",
     "name": "Pman.Dialog.AdminWatch",
     "parent": "",
     "title": "",
@@ -66,7 +66,7 @@
                                     "items": [
                                         {
                                             "listeners": {
-                                                "|beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    // staff can see all logs, other companies can only see their own.\n    if (Pman.Login.authUser.company_id_comptype != 'OWNER') {\n        o.params.company_id = Pman.Login.authUser.company_id;\n    }\n    o.params._distinct = 'on_table';\n    o.params._columns ='on_table';\n}"
+                                                "|beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    // staff can see all logs, other companies can only see their own.\n    if ((typeof(Pman.Login) != 'undefined') && Pman.Login.authUser.company_id_comptype != 'OWNER') {\n        o.params.company_id = Pman.Login.authUser.company_id;\n    }\n    o.params._distinct = 'on_table';\n    o.params._columns ='on_table';\n}"
                                             },
                                             "*prop": "store",
                                             "remoteSort": true,
                                                     "xtype": "HttpProxy",
                                                     "method": "GET",
                                                     "|xns": "Roo.data",
-                                                    "|url": "baseURL + '/Roo/Person.php'"
+                                                    "|url": "baseURL + '/Roo/core_person'"
                                                 },
                                                 {
                                                     "*prop": "reader",
                                     "allowBlank": true,
                                     "displayField": "action",
                                     "editable": true,
-                                    "emptyText": "",
                                     "fieldLabel": "Match Event",
                                     "forceSelection": false,
                                     "listWidth": 300,
                                     "items": [
                                         {
                                             "listeners": {
-                                                "|beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    // staff can see all logs, other companies can only see their own.\n    if (Pman.Login.authUser.company_id_comptype != 'OWNER') {\n        o.params.company_id = Pman.Login.authUser.company_id;\n    }\n    o.params._distinct = 'action';\n    o.params._columns ='action';\n}"
+                                                "|beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    // staff can see all logs, other companies can only see their own.\n    if (typeof(Pman.Login) !='undefined' && Pman.Login.authUser.company_id_comptype != 'OWNER') {\n        o.params.company_id = Pman.Login.authUser.company_id;\n    }\n    o.params._distinct = 'action';\n    o.params._columns ='action';\n}"
                                             },
                                             "*prop": "store",
                                             "remoteSort": true,
                                 {
                                     "allowBlank": true,
                                     "displayField": "val",
-                                    "editable": false,
+                                    "editable": true,
                                     "fieldLabel": "Action",
+                                    "forceSelection": false,
                                     "listWidth": 200,
                                     "name": "medium",
                                     "triggerAction": "all",