Author: Lars Michelsen <[email protected]>
Date: Thu May 29 11:34:14 2014 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Thu May 29 11:34:14 2014 +0200
FIX: Fixed links of rotation steps (always linking to last step)
---
ChangeLog | 2 ++
share/frontend/nagvis-js/js/NagVisRotation.js | 13 ++++++-------
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0011f83..5b7bffb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
1.8b5
+Frontend:
+ * FIX: Fixed links of rotation steps (always linking to last step)
1.8b4
Frontend:
diff --git a/share/frontend/nagvis-js/js/NagVisRotation.js
b/share/frontend/nagvis-js/js/NagVisRotation.js
index 09483ae..be7e491 100644
--- a/share/frontend/nagvis-js/js/NagVisRotation.js
+++ b/share/frontend/nagvis-js/js/NagVisRotation.js
@@ -41,7 +41,6 @@ var NagVisRotation = NagVisStatelessObject.extend({
oTd.rowSpan = this.conf.num_steps;
var url = this.conf.url;
-
oTd.onclick = function() {
location.href = url;
};
@@ -75,11 +74,11 @@ var NagVisRotation = NagVisStatelessObject.extend({
oTd = document.createElement('td');
oTd.width = '250px';
- var sUrl = this.conf.steps[i].url;
-
- oTd.onclick = function() {
- location.href = sUrl;
- };
+ oTd.onclick = function(url) {
+ return function() {
+ location.href = url;
+ }
+ }(this.conf.steps[i].url);
oTd.onmouseover = function() {
this.style.cursor = 'pointer';
@@ -102,4 +101,4 @@ var NagVisRotation = NagVisStatelessObject.extend({
oTbody = null;
}
-});
\ No newline at end of file
+});
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins