git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: hide login class sections in all contents
[minimedit.git]
/
foto
/
album.inc.php
diff --git
a/foto/album.inc.php
b/foto/album.inc.php
index 94100835dac88ba958f9440c06349a2d8a7c68d1..a0a6c70b653ee6b264e49facebd354ffc16e60e8 100644
(file)
--- a/
foto/album.inc.php
+++ b/
foto/album.inc.php
@@
-26,7
+26,7
@@
function openphotoswipe(index) {
<?php
if (!empty($User['admin'])) {
printf("\t\t\t{id:'%s', label:'%s', url:'%s'},\n",
<?php
if (!empty($User['admin'])) {
printf("\t\t\t{id:'%s', label:'%s', url:'%s'},\n",
- 'cover', 'Cover instellen', "/edit/fotocover$Args?img={{image_url}}"
+ 'cover', 'Cover instellen', "/edit/foto
/
cover$Args?img={{image_url}}"
);
}
?>
);
}
?>
@@
-74,7
+74,7
@@
function imgjustify() {
targetRowHeight: 200,
};
var layout = require('justified-layout')(ratios, config);
targetRowHeight: 200,
};
var layout = require('justified-layout')(ratios, config);
- var thumbreplace = !
window.location.search.test(/[?&]blur\b/
);
+ var thumbreplace = !
/[?&]blur\b/.test(window.location.search
);
gallery.style.position = 'relative';
gallery.style.height = layout.containerHeight + 'px';
gallery.style.position = 'relative';
gallery.style.height = layout.containerHeight + 'px';
@@
-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();
window.addEventListener('resize', imgjustify, false);
imgjustify();