Let the focusing function run after the pictures have been added to the

grid.
This commit is contained in:
Knut Forkalsrud 2012-01-02 15:33:51 -08:00
parent 6357d8da59
commit d2473ac2af
2 changed files with 15 additions and 14 deletions

1
.gitignore vendored
View file

@ -8,3 +8,4 @@ cache.properties
/.springBeans /.springBeans
/bin /bin
/target /target
/.externalToolBuilders

View file

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