Changeset 5520

Show
Ignore:
Timestamp:
05/22/07 22:52:29 (1 year ago)
Author:
rob1n
Message:

Run the i through the parseInt to avoid IE 7 errors. fixes #4268

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/wp-admin/widgets.php

    r5496 r5520  
    6969        //for ( var n in Draggables.drags ) { 
    7070        for ( n=0; n<=Draggables.drags.length; n++ ) { 
    71             if ( Draggables.drags[n].element.id == 'lastmodule' ) { 
    72                 Draggables.drags[n].destroy(); 
    73                 break; 
     71            if ( parseInt( n ) ) { 
     72                if ( Draggables.drags[n].element.id == 'lastmodule' ) { 
     73                    Draggables.drags[n].destroy(); 
     74                    break; 
     75                } 
    7476            } 
    7577        } 
  • trunk/wp-admin/widgets.php

    r5496 r5520  
    6969        //for ( var n in Draggables.drags ) { 
    7070        for ( n=0; n<=Draggables.drags.length; n++ ) { 
    71             if ( Draggables.drags[n].element.id == 'lastmodule' ) { 
    72                 Draggables.drags[n].destroy(); 
    73                 break; 
     71            if ( parseInt( n ) ) { 
     72                if ( Draggables.drags[n].element.id == 'lastmodule' ) { 
     73                    Draggables.drags[n].destroy(); 
     74                    break; 
     75                } 
    7476            } 
    7577        }