Pman.Tab.CoreOAuthClient.bjs
authorEdward <edward@roojs.com>
Wed, 25 Jun 2014 03:53:59 +0000 (11:53 +0800)
committerEdward <edward@roojs.com>
Wed, 25 Jun 2014 03:53:59 +0000 (11:53 +0800)
Pman.Tab.CoreOAuthClient.js

Pman.Tab.CoreOAuthClient.bjs
Pman.Tab.CoreOAuthClient.js

index 72e38b1..1293e2f 100644 (file)
                                             "*prop": "footer",
                                             "displayInfo": true,
                                             "emptyMsg": "No Item found",
-                                            "pageSize": 100,
+                                            "pageSize": 25,
                                             "xtype": "PagingToolbar",
-                                            "|updateSummary": "function() {\n\r\n    var f = this;\r\n    new Pman.Request({\r\n        url : baseURL + '/Xtuple/Roo/Poitem',\r\n        method : 'GET',\r\n        params : {\n            _roo_office : _this.data.office ? _this.data.office : baseURL.split('/').pop().substr(0,2),\r\n            _totals : 1,\r\n            poitem_pohead_id : _this.form.findField('pohead_id').getValue()\r\n        },\r\n        success : function(d) {\n            Roo.log(d);\r\n            f.displayEl.update(String.format(\r\n                \"{0} items | Total : {1} {2}\",\r\n                d.data[0].count_item,\r\n                _this.form.findField('pohead_curr_id').el.dom.value,\r\n                d.data[0].totals\r\n            ));\r\n                \r\n        }\r\n    });\r\n\n}\n",
                                             "|xns": "Roo"
                                         },
                                         {
index d757739..a39ab81 100644 (file)
@@ -197,31 +197,7 @@ Pman.Tab.CoreOAuthClient = new Roo.XComponent({
                                 xns: Roo,
                                 displayInfo : true,
                                 emptyMsg : "No Item found",
-                                pageSize : 100,
-                                updateSummary : function() {
-                                \r
-                                    var f = this;\r
-                                    new Pman.Request({\r
-                                        url : baseURL + '/Xtuple/Roo/Poitem',\r
-                                        method : 'GET',\r
-                                        params : {
-                                            _roo_office : _this.data.office ? _this.data.office : baseURL.split('/').pop().substr(0,2),\r
-                                            _totals : 1,\r
-                                            poitem_pohead_id : _this.form.findField('pohead_id').getValue()\r
-                                        },\r
-                                        success : function(d) {
-                                            Roo.log(d);\r
-                                            f.displayEl.update(String.format(\r
-                                                "{0} items | Total : {1} {2}",\r
-                                                d.data[0].count_item,\r
-                                                _this.form.findField('pohead_curr_id').el.dom.value,\r
-                                                d.data[0].totals\r
-                                            ));\r
-                                                \r
-                                        }\r
-                                    });\r
-                                
-                                }
+                                pageSize : 25
                             },
                             colModel : [
                                 {