summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-01-21 23:18:48 +0100
committerTobi Oetiker <tobi@oetiker.ch>2008-01-21 23:18:48 +0100
commit88c73fdb0c653f6366a06c21aa9c055245b8641a (patch)
tree84e9c0fe88aa94a291e43831bd4bd603a84e8acc /htdocs
parentf0d944ab93f7603843ba3a8ec825261d339c7eef (diff)
downloadsmokeping-88c73fdb0c653f6366a06c21aa9c055245b8641a.tar.gz
smokeping-88c73fdb0c653f6366a06c21aa9c055245b8641a.tar.xz
added alternate presentation hierarchies. Configure via Presentation->hierarchies and
Targets ... -> parents -- tobi
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/cropper/smokeping-zoom.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/htdocs/cropper/smokeping-zoom.js b/htdocs/cropper/smokeping-zoom.js
index 476fcdf..cf69310 100644
--- a/htdocs/cropper/smokeping-zoom.js
+++ b/htdocs/cropper/smokeping-zoom.js
@@ -48,6 +48,7 @@ function changeRRDImage(coords,dimensions){
var DivEpoch = EndEpoch - StartEpoch;
var Target = $F('target');
+ var Hierarchy = $F('hierarchy');
// construct Image URL
var myURLObj = new urlObj(document.URL);
@@ -69,7 +70,7 @@ function changeRRDImage(coords,dimensions){
EndEpoch = Math.ceil(EndEpoch + (SelectRight - (RRDImgWidth - RRDRight) ) * DivEpoch / RRDImgUsable * RightFactor);
- $('zoom').src = myURL + '?displaymode=a;start=' + StartEpoch + ';end=' + EndEpoch + ';target=' + Target;
+ $('zoom').src = myURL + '?displaymode=a;start=' + StartEpoch + ';end=' + EndEpoch + ';target=' + Target + (Hierarchy != '' ? ';hierarchy=' + Hierarchy : '');
myCropper.setParams();