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

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

index 790fc56..a030b5b 100644 (file)
                                                     "loadingText" : "Searching...",
                                                     "items" : [
                                                         {
-                                                            "| data" : "(function() { \n    var ret = [\n        [ 'ALL', 'All Transactions' ],\n        [ 'UNPOSTED', 'Unposted' ],\n        [ 'POSTED', 'Posted' ],\n        [ 'VOIDED', 'Voided' ],\n        [ '--', '-----------------' ]    \n    ];\n    var c = baseURL.split('/').pop().split('.').shift();     \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    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})()",
                                                             "xtype" : "SimpleStore",
                                                             "$ fields" : "[ 'value' ]",
                                                             "$ xns" : "Roo.data",
index 57b552e..5c047d6 100644 (file)
@@ -336,14 +336,12 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({
                                         store : {
                                             '|xns' : 'Roo.data',
                                             data : (function() { 
-                                                var ret = [
-                                                    [ 'ALL', 'All Transactions' ],
-                                                    [ 'UNPOSTED', 'Unposted' ],
-                                                    [ 'POSTED', 'Posted' ],
-                                                    [ 'VOIDED', 'Voided' ],
-                                                    [ '--', '-----------------' ]    
-                                                ];
-                                                var c = baseURL.split('/').pop().split('.').shift();     
+                                            
+                                                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;