Author:   Lars Michelsen <[email protected]>
Date:     Wed Jun 13 11:46:49 2012 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Wed Jun 13 11:46:49 2012 +0200

When releasing relative coordinates the parent object is not highlighted anymore

---

 ChangeLog                                          |    4 ++++
 TODO                                               |    3 ++-
 .../frontend/nagvis-js/js/NagVisStatefulObject.js  |    2 +-
 share/frontend/nagvis-js/js/edit.js                |   11 +++++++++--
 4 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b0c6814..02908b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1.7b3
+Frontend
+  * Bugfix: When releasing relative coordinates the parent object is not 
highlighted anymore
+
 1.7b2
 Core
   * Checking conf.d directory modification time to detect removed config files
diff --git a/TODO b/TODO
index 9bccea4..538e04a 100644
--- a/TODO
+++ b/TODO
@@ -2,8 +2,9 @@ This is a small file for storing quick thoughts about new 
features and needed ch
 ===============================================================================
 
 Probleme:
-  - Warnings anzeigen, wenn Funktionen aus oldPhpVersionFixes.php angezogen 
werden
+  - An Shapes anheften fehlt
   - Sidebar auf/zu verschiebt Objekte, aber nicht den Hintergrund
+  - Warnings anzeigen, wenn Funktionen aus oldPhpVersionFixes.php angezogen 
werden
 
 Zu tun:
   - Automap zu source umbauen
diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js 
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index 46fbc0e..30b6a57 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -778,7 +778,7 @@ var NagVisStatefulObject = NagVisObject.extend({
      *
      * @author Lars Michelsen <[email protected]>
      */
-    dragLabel: function(obj) {
+    dragLabel: function(obj, event) {
         var arr        = obj.id.split('-');
         var objId      = arr[0];
         var anchorType = arr[1];
diff --git a/share/frontend/nagvis-js/js/edit.js 
b/share/frontend/nagvis-js/js/edit.js
index 042e8fc..15961c0 100644
--- a/share/frontend/nagvis-js/js/edit.js
+++ b/share/frontend/nagvis-js/js/edit.js
@@ -259,9 +259,16 @@ function dragObject(event) {
         }
     }
 
+    // Shift key
+    if(event.shiftKey) {
+        // Unhighlight all other objects
+        for(var i in oMapObjects)
+            oMapObjects[i].highlight(false);
+    }
+
     // Call the dragging handler when one is set
     if(dragMoveHandlers[draggingObject.id])
-        dragMoveHandlers[draggingObject.id](draggingObject);
+        dragMoveHandlers[draggingObject.id](draggingObject, event);
     oParent = null;
 }
 
@@ -362,7 +369,7 @@ function dragStop(event) {
 
         // Call the dragging handler when one is set
         if(dragMoveHandlers[draggingObject.id])
-            dragMoveHandlers[draggingObject.id](draggingObject);
+            dragMoveHandlers[draggingObject.id](draggingObject, event);
 
         draggingObject = null;
         return;


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to