Author: Lars Michelsen <[email protected]>
Date: Tue Apr 12 19:33:51 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Tue Apr 12 19:33:51 2011 +0200
The coord to grid function cares about correct var types now
---
share/frontend/nagvis-js/js/edit.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/share/frontend/nagvis-js/js/edit.js
b/share/frontend/nagvis-js/js/edit.js
index f990191..278d495 100644
--- a/share/frontend/nagvis-js/js/edit.js
+++ b/share/frontend/nagvis-js/js/edit.js
@@ -764,6 +764,8 @@ function gridToggle() {
* Alligns the current coordinates to the current grid
*/
function coordsToGrid(x, y) {
+ x = "" + x;
+ y = "" + y;
if(x.indexOf(',') !== -1) {
x = x.split(',');
y = y.split(',');
@@ -773,6 +775,8 @@ function coordsToGrid(x, y) {
}
return [ x.join(','), y.join(',') ];
} else {
+ x = +x;
+ y = +y;
var gridMoveX = x - (x % oViewProperties.grid_steps);
var gridMoveY = y - (y % oViewProperties.grid_steps);
return [ gridMoveX, gridMoveY ];
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins