|
|
@@ -214,18 +214,6 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
|
|
|
}
|
|
|
}],
|
|
|
|
|
|
- listeners:{
|
|
|
- boxready: function(grid, width, height, eOpts) {
|
|
|
- var store = grid.getStore(),
|
|
|
- gridBodyBox = grid.body.dom.getBoundingClientRect(),
|
|
|
- gridBodyBoxHeight = gridBodyBox.height;
|
|
|
-
|
|
|
- var pageSize = Math.floor(gridBodyBoxHeight / 33);
|
|
|
-
|
|
|
- store.setPageSize(pageSize);
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
initComponent: function() {
|
|
|
var me = this;
|
|
|
if(me.columns){
|
|
|
@@ -304,7 +292,7 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
|
|
|
keydown: {
|
|
|
fn: function(th, e, eOpts) {
|
|
|
if(e.keyCode == 13) {
|
|
|
- grid.store.load();
|
|
|
+ grid.onbuild();
|
|
|
}
|
|
|
}
|
|
|
}
|