Ticket #4268: 4268.diff

File 4268.diff, 0.6 kB (added by rob1n, 1 year ago)
  • widgets.php

    old new  
    6868                $A(Draggables.drags).map(function(o) {o.startDrag(null); o.finishDrag(null);}); 
    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                } 
    7678                resetPaletteHeight();