issue 18034: the lines quantity to count will be configurable per window
authorJavier Etxarri <javier.echarri@openbravo.com>
Tue, 30 Aug 2011 10:50:49 +0200
changeset 13619 41a04622702b
parent 13618 4cf7260180a6
child 13620 ab1bb30e3d60
issue 18034: the lines quantity to count will be configurable per window
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Aug 30 10:40:44 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Aug 30 10:50:49 2011 +0200
@@ -410,6 +410,7 @@
   },
   
   setView: function(view){
+    var dataPageSizeaux;
     this.view = view;
     this.editFormDefaults.view = view;
     if (this.view.standardWindow.viewState && this.view.standardWindow.viewState[this.view.tabId]) {
@@ -446,8 +447,8 @@
       }
     }
     //Modify the quantity of lines to count per Window
-    var dataPageSizeaux = OB.PropertyStore.get('dataPageSize',this.view.windowId);
-    this.dataPageSize = (dataPageSizeaux) ? +dataPageSizeaux : 100;
+    dataPageSizeaux = OB.PropertyStore.get('dataPageSize',this.view.windowId);
+    this.dataPageSize = dataPageSizeaux ? +dataPageSizeaux : 100;
   },
 
   show: function(){