Make sure the "focus" parameter also works for the first image in the album.

This commit is contained in:
Knut Forkalsrud 2011-03-30 18:38:13 -07:00
parent 22f10bd11b
commit 1b642ddab9

View file

@ -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');
}
});