aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/js/lightbox.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/views/default/js/lightbox.php b/views/default/js/lightbox.php
index 6e910f635..014a33196 100644
--- a/views/default/js/lightbox.php
+++ b/views/default/js/lightbox.php
@@ -25,6 +25,16 @@
elgg.provide('elgg.ui.lightbox');
elgg.ui.lightbox.init = function() {
+
+ $.extend($.colorbox.settings, {
+ current: elgg.echo('js:lightbox:current', ['{current}', '{total}']),
+ previous: elgg.echo('previous'),
+ next: elgg.echo('next'),
+ close: elgg.echo('close'),
+ xhrError: elgg.echo('error:default'),
+ imgError: elgg.echo('error:default'),
+ });
+
$(".elgg-lightbox").colorbox();
$(".elgg-lightbox-photo").colorbox({photo: true});
var n = 0;