Pman.Tab.AdminLogEvents.bjs
authorEdward <edward@roojs.com>
Thu, 18 Dec 2014 04:10:14 +0000 (12:10 +0800)
committerEdward <edward@roojs.com>
Thu, 18 Dec 2014 04:10:14 +0000 (12:10 +0800)
Pman.Tab.AdminLogEvents.js

Pman.Tab.AdminLogEvents.bjs
Pman.Tab.AdminLogEvents.js

index a030b5b..faa4ca8 100644 (file)
                                                     "loadingText" : "Searching...",
                                                     "items" : [
                                                         {
-                                                            "| data" : "(function() { \n\n    if(typeof(uiConfig.events_person_table) != 'undefined' && uiConfig.events_person_table.length){\n        return [];        \n    }\n    \n    var table = uiConfig.events_person_table;\n    Roo.each(uiConfig.xtuple_offices, function(o) {\n        if (o == c) {\n            return;\n        }\n        ret.push( [ 'office-' + o,    \"Transfers from \" +   Pman.Xtuple.offices[o] ] );\n\n    });\n    \n    return ret;\n    \n    \n})()",
+                                                            "| data" : "(function() { \n\n    if(typeof(uiConfig.events_person_table) != 'undefined' && uiConfig.events_person_table.length){\n        return [];        \n    }\n\n    return uiConfig.events_person_table;\n    \n    \n})()",
                                                             "xtype" : "SimpleStore",
                                                             "$ fields" : "[ 'value' ]",
                                                             "$ xns" : "Roo.data",
index 5c047d6..11ac52b 100644 (file)
@@ -340,17 +340,8 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({
                                                 if(typeof(uiConfig.events_person_table) != 'undefined' && uiConfig.events_person_table.length){
                                                     return [];        
                                                 }
-                                                
-                                                var table = uiConfig.events_person_table;
-                                                Roo.each(uiConfig.xtuple_offices, function(o) {
-                                                    if (o == c) {
-                                                        return;
-                                                    }
-                                                    ret.push( [ 'office-' + o,    "Transfers from " +   Pman.Xtuple.offices[o] ] );
                                             
-                                                });
-                                                
-                                                return ret;
+                                                return uiConfig.events_person_table;
                                                 
                                                 
                                             })(),