diff --git a/.gitignore b/.gitignore index 99747de..5f21eb3 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ cache.properties /.springBeans /bin /target +/.externalToolBuilders diff --git a/src/main/webapp/WEB-INF/velocity/dynamic.vm b/src/main/webapp/WEB-INF/velocity/dynamic.vm index b46fe02..b8ae06c 100644 --- a/src/main/webapp/WEB-INF/velocity/dynamic.vm +++ b/src/main/webapp/WEB-INF/velocity/dynamic.vm @@ -182,22 +182,22 @@ $D(function() { }); + var selectedImg = window.location.search; + var selectedPos = undefined; + if (/^\?focus=/.test(selectedImg)) { + selectedImg = selectedImg.substring('?focus='.length); + $D("a.ss").each(function(index) { + if (selectedImg == $(this).attr("title")) { + selectedPos = index; + } + }); + } + + if (selectedPos !== undefined) { + $D("#ent" + selectedPos).trigger('click'); + } }); - var selectedImg = window.location.search; - var selectedPos = undefined; - if (/^\?focus=/.test(selectedImg)) { - selectedImg = selectedImg.substring('?focus='.length); - $D("a.ss").each(function(index) { - if (selectedImg == $(this).attr("title")) { - selectedPos = index; - } - }); - } - - if (selectedPos !== undefined) { - $D(gallery[selectedPos]).trigger('click'); - } });