Author: Lars Michelsen <[email protected]>
Date: Sat Apr 2 11:29:27 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sat Apr 2 11:29:27 2011 +0200
Fixed drag/drop in WUI
---
share/frontend/nagvis-js/js/nagvis.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/share/frontend/nagvis-js/js/nagvis.js
b/share/frontend/nagvis-js/js/nagvis.js
index cbfbd70..9d27cff 100644
--- a/share/frontend/nagvis-js/js/nagvis.js
+++ b/share/frontend/nagvis-js/js/nagvis.js
@@ -1241,8 +1241,11 @@ function dragStop(event, handler) {
oParent = false;
// Unhighlight all parents when relative
- for(var objectId in
getMapObjByDomObjId(draggingObject.id.split('-')[0]).getParentObjectIds())
- getMapObjByDomObjId(objectId).highlight(false);
+ // This condition is a quick fix to make the dragging code work again
in the WUI. Once
+ // the WUI is dropped in the future this can be removed
+ if(draggingObject.id.indexOf('-') > -1)
+ for(var objectId in
getMapObjByDomObjId(draggingObject.id.split('-')[0]).getParentObjectIds())
+ getMapObjByDomObjId(objectId).highlight(false);
handler(draggingObject, oParent);
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins