diff options
-rw-r--r-- | htdocs/cropper/smokeping-zoom.js | 6 |
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( } ) } + } ); |