Author: Lars Michelsen <[email protected]>
Date: Wed Apr 20 12:35:47 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Wed Apr 20 12:35:47 2011 +0200
Replaced too fancy code to make it work in chrome
---
share/frontend/nagvis-js/js/edit.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/share/frontend/nagvis-js/js/edit.js
b/share/frontend/nagvis-js/js/edit.js
index e709fee..ff74a9b 100644
--- a/share/frontend/nagvis-js/js/edit.js
+++ b/share/frontend/nagvis-js/js/edit.js
@@ -343,8 +343,12 @@ function getEventMousePos(e) {
posy -= getHeaderHeight();
// When a grid is enabled align the dragged object in the nearest grid
- if(oViewProperties.grid_show === 1)
- [ posx, posy ] = coordsToGrid(posx, posy);
+ if(oViewProperties.grid_show === 1) {
+ var a = coordsToGrid(posx, posy);
+ posx = a[0];
+ posy = a[1];
+ a = null;
+ }
return [ posx, posy ];
}
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins