summaryrefslogtreecommitdiffstats
path: root/data/js
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-10-03 15:44:25 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-10-03 15:44:25 +0200
commitba760ba7280265cb49e38a2b039c42d5bdfd6b9d (patch)
treed8ce098df88ffeb0b9aed79cbb4fc11bf934249a /data/js
parent5b9d0d0168d9356fc7d944fb565cdbed85d659a1 (diff)
Colorbox: Disable transition, start at 100% size
No transitions makes it easier to compare images that are not the same size. Starting at 100% gets rid of the weird looking small box while loading a big image (only when opening, not when switching between images). Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'data/js')
-rw-r--r--data/js/script.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/js/script.js b/data/js/script.js
index a4c545088..57a2b6021 100644
--- a/data/js/script.js
+++ b/data/js/script.js
@@ -245,6 +245,10 @@ function fixedEncodeURIComponent (str) {
if (typeof $.colorbox !== 'undefined') {
function setup_colorbox() {
$('.colorbox').colorbox({
+ transistion: "none",
+ speed: 0,
+ initialWidth: "100%",
+ initialHeight: "100%",
photo: true,
retinaImage: true,
maxHeight: "100%",