comparison app/override/Table.js @ 548:d47ee7439f44

Added new js files.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Mar 2015 12:43:52 +0100
parents
children
comparison
equal deleted inserted replaced
547:f172b35a3b92 548:d47ee7439f44
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */
8
9 Ext.define('Lada.override.Table', {
10 override: 'Ext.view.Table',
11
12 doStripeRows: function(startRow, endRow) {
13 var me = this;
14 var rows;
15 var rowsLn;
16 var i;
17 var row;
18
19 if (me.rendered && me.stripeRows) {
20 rows = me.getNodes(startRow, endRow);
21
22 for (i = 0, rowsLn = rows.length; i < rowsLn; i++) {
23 row = rows[i];
24
25 if (row) { // self updating; check for row existence
26 row.className = row.className.replace(me.rowClsRe, ' ');
27 startRow++;
28
29 if (startRow % 2 === 0) {
30 row.className += (' ' + me.altRowCls);
31 }
32 }
33 }
34 }
35 }
36 });

http://lada.wald.intevation.org