X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/a1bb8561064d0985ecb6c65054bf352f667bc9b7..251616969893b447852aad81a4e68be6853e202e:/foto/album.inc.php diff --git a/foto/album.inc.php b/foto/album.inc.php index c3f3464..42061d7 100644 --- a/foto/album.inc.php +++ b/foto/album.inc.php @@ -24,7 +24,7 @@ function openphotoswipe(index) { closeElClasses: [], shareButtons: [ admin('foto')) { printf("\t\t\t{id:'%s', label:'%s', url:'%s'},\n", 'cover', 'Cover instellen', "/edit/foto/cover$Args?img={{image_url}}" ); @@ -104,6 +104,11 @@ function imgjustify() { } }; +if (request = window.location.hash.match(/pid=(.*)/)) { + index = images.findIndex(row => row.src == request[1]); + openphotoswipe(index); +} + window.addEventListener('resize', imgjustify, false); imgjustify();