Mercurial > lada > lada-client
diff app/controller/grid/MessungList.js @ 1412:dc90e2997071
Merged branch release-2.5 into default.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 27 Mar 2017 16:50:00 +0200 |
parents | 69ebd572fe5c |
children |
line wrap: on
line diff
--- a/app/controller/grid/MessungList.js Wed Mar 22 16:28:22 2017 +0100 +++ b/app/controller/grid/MessungList.js Mon Mar 27 16:50:00 2017 +0200 @@ -28,6 +28,9 @@ }, 'messunglistgrid toolbar button[action=setstatus]': { click: this.setStatus + }, + 'messunglistgrid pagingtoolbar': { + change: this.pageChange } }); this.callParent(arguments); @@ -297,5 +300,18 @@ if (btn === 'yes') { location.reload(); } + }, + + pageChange: function(toolbar) { + var grid = toolbar.up('grid'); + var store = grid.getStore(); + var rowExpander = grid.plugins[0] + var nodes = rowExpander.view.getNodes(); + for (var i = 0; i < nodes.length; i++) { + var node = Ext.fly(nodes[i]); + if (node.hasCls(rowExpander.rowCollapsedCls) === false) { + rowExpander.toggleRow(i, store.getAt(i)); + } + } } });