diff --git a/src/main/webapp/dynamic.html b/src/main/webapp/dynamic.html index ef52960..55e5fb3 100644 --- a/src/main/webapp/dynamic.html +++ b/src/main/webapp/dynamic.html @@ -180,7 +180,7 @@ $(function() { var selectedImg = window.location.search; - var selectedPos; + var selectedPos = undefined; if (/^\?focus=/.test(selectedImg)) { selectedImg = selectedImg.substring('?focus='.length); $("a.ss").each(function(index) { @@ -191,7 +191,7 @@ $(function() { } - if (selectedPos) { + if (selectedPos !== undefined) { $(gallery[selectedPos]).trigger('click'); } });