raimund@548: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
raimund@548:  * Software engineering by Intevation GmbH
raimund@548:  *
raimund@548:  * This file is Free Software under the GNU GPL (v>=3)
raimund@548:  * and comes with ABSOLUTELY NO WARRANTY! Check out
raimund@548:  * the documentation coming with IMIS-Labordaten-Application for details.
raimund@548:  */
raimund@548: 
raimund@548: Ext.define('Lada.override.Table', {
raimund@548:     override: 'Ext.view.Table',
raimund@548: 
raimund@548:     doStripeRows: function(startRow, endRow) {
raimund@548:         var me = this;
raimund@548:         var rows;
raimund@548:         var rowsLn;
raimund@548:         var i;
raimund@548:         var row;
raimund@548: 
raimund@548:         if (me.rendered && me.stripeRows) {
raimund@548:             rows = me.getNodes(startRow, endRow);
raimund@548: 
raimund@548:             for (i = 0, rowsLn = rows.length; i < rowsLn; i++) {
raimund@548:                 row = rows[i];
raimund@548: 
raimund@548:                 if (row) { // self updating; check for row existence
raimund@548:                     row.className = row.className.replace(me.rowClsRe, ' ');
raimund@548:                     startRow++;
raimund@548: 
raimund@548:                     if (startRow % 2 === 0) {
raimund@548:                         row.className += (' ' + me.altRowCls);
raimund@548:                     }
raimund@548:                 }
raimund@548:             }
raimund@548:         }
raimund@548:     }
raimund@548: });