diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-08-20 16:44:22 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-08-20 16:44:22 +0200 |
commit | eacecb176b5f4d4cdfdb80808f2a24384960846e (patch) | |
tree | ec4e17c34de2341241a0c9cb4f92b8c6c9ed2fc4 /htdocs/js/smokeping_zoom.js | |
parent | c410011f2d8102ae927bda7f5223471ce387c9fc (diff) | |
download | smokeping-eacecb176b5f4d4cdfdb80808f2a24384960846e.tar.gz smokeping-eacecb176b5f4d4cdfdb80808f2a24384960846e.tar.xz |
more zoom fixes
Diffstat (limited to 'htdocs/js/smokeping_zoom.js')
-rw-r--r-- | htdocs/js/smokeping_zoom.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/htdocs/js/smokeping_zoom.js b/htdocs/js/smokeping_zoom.js index 47ce067..d06c867 100644 --- a/htdocs/js/smokeping_zoom.js +++ b/htdocs/js/smokeping_zoom.js @@ -88,14 +88,10 @@ $(document).ready(function() { var rrdimg = jQuery("img#zoom"); - var myImgTop = rrdimg.get(0).y; - var myImgLeft = rrdimg.get(0).x; - var myImgRight = myImgLeft + rrdimg.get(0).width; - var myImgBottom = myImgTop + rrdimg.get(0).height; StartDateString = 0; EndDateString = 0; - jQuery('body',document).append('<div id="selector"></div>') + jQuery('body',document).append('<div id="selector" oncontextmenu="return false"></div>') var selector = jQuery("div#selector"); selector.Selectable({ @@ -105,10 +101,10 @@ $(document).ready(function() { selector.css({ cursor: 'crosshair', - top : rrdimg.offset().top+30, - width : rrdimg.width()-95, - left : rrdimg.offset().left+68, - height : rrdimg.height()-110, + top : rrdimg.offset().top+30 + 'px', + width : rrdimg.width()-95 + 'px', + left : rrdimg.offset().left+68 + 'px', + height : rrdimg.height()-110 + 'px', position: 'absolute', background: '#fefefe', opacity: 0.1, |