Make sure the "focus" parameter also works for the first image in the album.
This commit is contained in:
parent
22f10bd11b
commit
1b642ddab9
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue