summaryrefslogtreecommitdiffstats
path: root/data/js/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/js/script.js')
-rw-r--r--data/js/script.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/js/script.js b/data/js/script.js
index 77336a88e..9aabf7557 100644
--- a/data/js/script.js
+++ b/data/js/script.js
@@ -78,10 +78,12 @@ function fixedEncodeURIComponent (str) {
$('#delete_button').hide();
$("#delete_form input[id^='delete_']").remove();
$(".upload_thumbnails .marked").removeClass("marked");
+ setup_colorbox();
break;
default:
window.page_mode = "delete";
$('#delete_button').show();
+ $.colorbox.remove();
break;
}
});
@@ -236,5 +238,19 @@ function fixedEncodeURIComponent (str) {
});
}
+ function setup_colorbox() {
+ $('.colorbox').colorbox({
+ photo: true,
+ retinaImage: true,
+ maxHeight: "100%",
+ maxWidth: "100%",
+ next: '<span class="glyphicon glyphicon-chevron-right"></span>',
+ previous: '<span class="glyphicon glyphicon-chevron-left"></span>',
+ close: '<span class="glyphicon glyphicon-remove"></span>',
+ loop: false,
+ });
+ }
+ setup_colorbox();
+
});
})(jQuery);