comparison app/controller/grid/ProbeList.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
comparison
equal deleted inserted replaced
1409:50b04a7bee16 1412:dc90e2997071
49 } 49 }
50 }, 50 },
51 'probelistgrid gridview': { 51 'probelistgrid gridview': {
52 expandbody: this.expandBody, 52 expandbody: this.expandBody,
53 collapsebody: this.collapseBody 53 collapsebody: this.collapseBody
54 },
55 'probelistgrid pagingtoolbar': {
56 change: this.pageChange
54 } 57 }
55 }); 58 });
56 this.callParent(arguments); 59 this.callParent(arguments);
57 }, 60 },
58 61
547 Ext.Msg.alert(i18n.getMsg('err.msg.generic.title'), 550 Ext.Msg.alert(i18n.getMsg('err.msg.generic.title'),
548 i18n.getMsg('err.msg.print.noContact')); 551 i18n.getMsg('err.msg.print.noContact'));
549 } 552 }
550 } 553 }
551 }); 554 });
555 },
556
557 pageChange: function(toolbar) {
558 var grid = toolbar.up('grid');
559 var store = grid.getStore();
560 var rowExpander = grid.plugins[0]
561 var nodes = rowExpander.view.getNodes();
562 for (var i = 0; i < nodes.length; i++) {
563 var node = Ext.fly(nodes[i]);
564 if (node.hasCls(rowExpander.rowCollapsedCls) === false) {
565 rowExpander.toggleRow(i, store.getAt(i));
566 }
567 }
552 } 568 }
553 569
554 }); 570 });

http://lada.wald.intevation.org