PDA

View Full Version : [FIXED][3.1] LockingGridView.js



killfill
18 Dec 2009, 11:22 AM
Hello all,

I need to apply the following change to LockingGridView.js, so that when i delete a record in my grid, LockingGridView.js doesnt complain about the idx variable:


Index: ext-3.1.0/examples/ux/LockingGridView.js
===================================================================
--- ext-3.1.0/examples/ux/LockingGridView.js (revision 1088)
+++ ext-3.1.0/examples/ux/LockingGridView.js (working copy)
@@ -301,7 +301,7 @@
if(!skipStripe){
row.className = row.className.replace(this.rowClsRe, ' ');
lrow.className = lrow.className.replace(this.rowClsRe, ' ');
- if ((idx + 1) % 2 === 0){
+ if ((i + 1) % 2 === 0){
row.className += ' x-grid3-row-alt';
lrow.className += ' x-grid3-row-alt';
}



Thanks!

evant
18 Dec 2009, 6:05 PM
This has been corrected in SVN.