summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-12-23 00:41:41 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-12-23 00:41:41 +0100
commit4f4795e90f9b6e6029c31ee01ed325016161d6e8 (patch)
tree7e60e1c99a2b8cad06cb7a1e50f604266a6218ba /htdocs
parent17a23d3e899c888d28d85c1884cb6cd2f8e1120c (diff)
downloadsmokeping-4f4795e90f9b6e6029c31ee01ed325016161d6e8.tar.gz
smokeping-4f4795e90f9b6e6029c31ee01ed325016161d6e8.tar.xz
test if zoom is here
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/cropper/smokeping-zoom.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/htdocs/cropper/smokeping-zoom.js b/htdocs/cropper/smokeping-zoom.js
index 0270534..476fcdf 100644
--- a/htdocs/cropper/smokeping-zoom.js
+++ b/htdocs/cropper/smokeping-zoom.js
@@ -79,8 +79,9 @@ Event.observe(
window,
'load',
function() {
- myCropper = new Cropper.Img(
- 'zoom',
+ if ( $('zoom') != null ){
+ myCropper = new Cropper.Img(
+ 'zoom',
{
minHeight: $('zoom').getDimensions().height,
maxHeight: $('zoom').getDimensions().height,
@@ -88,5 +89,6 @@ Event.observe(
}
)
}
+ }
);