commit 346ff90e8141b44307eb80dc9d3aeedb2c6e5a4e
parent 956aa642af73001c2bf4ccf2ae1aee2f47b397d1
Author: Felicitus <felicitus@felicitus.org>
Date: Wed, 4 Jan 2012 22:30:11 +0100
Added default sorting for the stock history, fixes #124
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/frontend/js/Components/StockReport/AbstractStockHistoryGrid.js b/src/frontend/js/Components/StockReport/AbstractStockHistoryGrid.js
@@ -72,6 +72,10 @@ Ext.define('PartKeepr.AbstractStockHistoryGrid', {
remoteSort: true,
proxy: PartKeepr.getRESTProxy("Stock"),
model: 'PartKeepr.StockEntry',
+ sorters: [{
+ property: 'dateTime',
+ direction:'DESC'
+ }],
pageSize: this.pageSize };
this.store = Ext.create('Ext.data.Store', config);