From 9fbf30261ba67700ac6cd8f72d2e86fadace2d35 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 18 Dec 2014 12:10:14 +0800 Subject: [PATCH] Pman.Tab.AdminLogEvents.bjs Pman.Tab.AdminLogEvents.js --- Pman.Tab.AdminLogEvents.bjs | 2 +- Pman.Tab.AdminLogEvents.js | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Pman.Tab.AdminLogEvents.bjs b/Pman.Tab.AdminLogEvents.bjs index a030b5b..faa4ca8 100644 --- a/Pman.Tab.AdminLogEvents.bjs +++ b/Pman.Tab.AdminLogEvents.bjs @@ -155,7 +155,7 @@ "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", diff --git a/Pman.Tab.AdminLogEvents.js b/Pman.Tab.AdminLogEvents.js index 5c047d6..11ac52b 100644 --- a/Pman.Tab.AdminLogEvents.js +++ b/Pman.Tab.AdminLogEvents.js @@ -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; })(), -- 2.39.2