X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/251616969893b447852aad81a4e68be6853e202e..HEAD:/foto/album.inc.php diff --git a/foto/album.inc.php b/foto/album.inc.php index 42061d7..692aafa 100644 --- a/foto/album.inc.php +++ b/foto/album.inc.php @@ -24,9 +24,9 @@ function openphotoswipe(index) { closeElClasses: [], shareButtons: [ admin('foto')) { +if ($User->admin('foto')) { printf("\t\t\t{id:'%s', label:'%s', url:'%s'},\n", - 'cover', 'Cover instellen', "/edit/foto/cover$Args?img={{image_url}}" + 'cover', 'Cover instellen', "/edit/foto/cover{$Page->path}?img={{image_url}}" ); } ?> @@ -74,7 +74,6 @@ function imgjustify() { targetRowHeight: 200, }; var layout = require('justified-layout')(ratios, config); - var thumbreplace = !/[?&]blur\b/.test(window.location.search); gallery.style.position = 'relative'; gallery.style.height = layout.containerHeight + 'px'; @@ -86,20 +85,6 @@ function imgjustify() { imgel.style.position = 'absolute'; imgel.style.top = layout.boxes[i].top + 'px'; imgel.style.left = layout.boxes[i].left + 'px'; - - if (thumbreplace) { - var thumbtarget = imgel.src.replace(/(\/thumb\/)\d+/, '$1'+layout.boxes[i].height) - if (imgel.complete) { - imgel.src = thumbtarget; - } - else if (thumbtarget != imgel.src) { - var loadthumb = new Image(); - loadthumb.src = thumbtarget; - loadthumb.onload = function() { - imgel.src = this.src; - }; - } - } })(); } };