Changeset 6503
- Timestamp:
- 09/11/06 11:37:01 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/webSiteGenerator/scDragMgr.js
r6490 r6503 1015 1015 1016 1016 // 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) { 1021 1021 var vGroup = pDragEvent.group 1022 1022 var vItem = pDragEvent.group.element … … 1029 1029 vCurrentCatchment.xUpdateGui() 1030 1030 } 1031 pCatchment.fContainer.appendChild(vItem)1032 vItem.fLastContainer = pCatchment.fContainer1033 pCatchment.xUpdateGui()1034 pCatchment.onDragOver()1031 this.fContainer.appendChild(vItem) 1032 vItem.fLastContainer = this.fContainer 1033 this.xUpdateGui() 1034 this.onDragOver() 1035 1035 }, 1036 1036 _onDragOut : function(pDragEvent) { … … 1042 1042 }, 1043 1043 // INTERNAL - sorting algorythm 1044 _onDragSort : function(pDragEvent , pCatchment) {1044 _onDragSort : function(pDragEvent) { 1045 1045 var vHelpers = scDragMgr.helpers 1046 1046 var vItem = pDragEvent.group.element … … 1104 1104 var vCatchment = scDragMgr.dragdrop.fFirstCatchments[vItem.fKey] 1105 1105 while (vCatchment != null) { 1106 if (vHelpers.isMouseInside(pDragEvent, vCatchment) && vCatchment.xIsDropable(pDragEvent , vCatchment)) {1106 if (vHelpers.isMouseInside(pDragEvent, vCatchment) && vCatchment.xIsDropable(pDragEvent)) { 1107 1107 vIsOutside = false 1108 1108 break … … 1117 1117 1118 1118 // else if we are in a new catchment zone switch to the new one 1119 } else if (v Item.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) 1121 1121 } 1122 1122 if (vCatchment) vCatchment.xOnDragPostProcess(pDragEvent, vCatchment)
Note: See TracChangeset
for help on using the changeset viewer.