Changeset 6503


Ignore:
Timestamp:
09/11/06 11:37:01 (5 years ago)
Author:
sam
Message:

Correction scDragMgr.setMode(pContainer, pMode, pMax)
pMax incorrectement reinit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/webSiteGenerator/scDragMgr.js

    r6490 r6503  
    10151015         
    10161016        // INTERNAL drag/drop functions 
    1017         _IsDropable : function(pDragEvent, pCatchment) { 
    1018                 return( pCatchment.fMaxLabels =-1 || scDragMgr.dragdrop.countLabels(pCatchment.fContainer) < pCatchment.fMaxLabels || pDragEvent.group.element.parentNode.fCatchment == pCatchment ) 
    1019         }, 
    1020         _onDragOver : function(pDragEvent, pCatchment) { 
     1017        _IsDropable : function(pDragEvent) { 
     1018                return( this.fMaxLabels == -1 || scDragMgr.dragdrop.countLabels(this.fContainer) < this.fMaxLabels || pDragEvent.group.element.parentNode.fCatchment == this ) 
     1019        }, 
     1020        _onDragOver : function(pDragEvent) { 
    10211021                var vGroup = pDragEvent.group 
    10221022                var vItem = pDragEvent.group.element 
     
    10291029                        vCurrentCatchment.xUpdateGui() 
    10301030                } 
    1031                 pCatchment.fContainer.appendChild(vItem) 
    1032                 vItem.fLastContainer = pCatchment.fContainer 
    1033                 pCatchment.xUpdateGui() 
    1034                 pCatchment.onDragOver() 
     1031                this.fContainer.appendChild(vItem) 
     1032                vItem.fLastContainer = this.fContainer 
     1033                this.xUpdateGui() 
     1034                this.onDragOver() 
    10351035        }, 
    10361036        _onDragOut : function(pDragEvent) { 
     
    10421042        }, 
    10431043        // INTERNAL - sorting algorythm 
    1044         _onDragSort : function(pDragEvent, pCatchment) { 
     1044        _onDragSort : function(pDragEvent) { 
    10451045                var vHelpers = scDragMgr.helpers 
    10461046                var vItem = pDragEvent.group.element 
     
    11041104                var vCatchment = scDragMgr.dragdrop.fFirstCatchments[vItem.fKey] 
    11051105                while (vCatchment != null) { 
    1106                         if (vHelpers.isMouseInside(pDragEvent, vCatchment) && vCatchment.xIsDropable(pDragEvent, vCatchment)) { 
     1106                        if (vHelpers.isMouseInside(pDragEvent, vCatchment) && vCatchment.xIsDropable(pDragEvent)) { 
    11071107                                vIsOutside = false 
    11081108                                break 
     
    11171117 
    11181118                // else if we are in a new catchment zone switch to the new one   
    1119                 } else if (vItem.fLastContainer == null || vCatchment != vItem.fLastContainer.fCatchment) { 
    1120                         vCatchment.xOnDragOver(pDragEvent, vCatchment) 
     1119                } else if (vCatchment && (vItem.fLastContainer == null || vCatchment != vItem.fLastContainer.fCatchment)) { 
     1120                        vCatchment.xOnDragOver(pDragEvent) 
    11211121                } 
    11221122                if (vCatchment) vCatchment.xOnDragPostProcess(pDragEvent, vCatchment) 
Note: See TracChangeset for help on using the changeset viewer.