Plugin Directory


Ignore:
Timestamp:
07/04/2006 12:47:21 AM (20 years ago)
Author:
skeltoac
Message:

Force phantom lastmodule to end of palette

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/trunk/widgets.php

    r6206 r6207  
    428428                        widgets.map(function(o) {o='widgetprefix-'+o; Position.absolutize(o); Position.relativize(o);} );
    429429                        $A(Draggables.drags).map(function(o) {o.startDrag(null); o.finishDrag(null);});
     430                        for ( var n in Draggables.drags ) {
     431                                if ( n && Draggables.drags[n].element.id == 'lastmodule' )
     432                                        Draggables.drags[n].destroy();
     433                        }
    430434                        resetPaletteHeight();
    431435                }
    … …  
    437441                }
    438442                function resetPaletteHeight() {
    439                         var p = $('palette'), pd = $('palettediv'), last = p.childNodes[p.childNodes.length-1];
     443                        var p = $('palette'), pd = $('palettediv'), last = $('lastmodule');
     444                        p.appendChild(last);
    440445                        if ( Draggables.activeDraggable && last.id == Draggables.activeDraggable.element.id )
    441446                                last = last.previousSibling;
Note: See TracChangeset for help on using the changeset viewer.