make zoom work standalone

git-svn-id: file:///home/shish/svn/shimmie2/trunk@240 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-07-07 17:57:44 +00:00
parent 69ca13fa50
commit 9298649c30

View file

@ -10,7 +10,7 @@ class ZoomTheme extends Themelet {
$default = $zoom_by_default ? "scale(img);" : "";
return <<<EOD
<script type="text/javascript">
img = byId("main_image");
img = document.getElementById("main_image");
img.onclick = function() {scale(img);};