From e35cde1f6c8e3575fe7804182063a7756f001c48 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 5 Apr 2018 20:26:33 -0400 Subject: [PATCH] Add item counter to the document fancybox previewer. Signed-off-by: Roberto Rosario --- mayan/apps/appearance/static/appearance/js/mayan_image.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mayan/apps/appearance/static/appearance/js/mayan_image.js b/mayan/apps/appearance/static/appearance/js/mayan_image.js index 23f123d232..1d9103364e 100644 --- a/mayan/apps/appearance/static/appearance/js/mayan_image.js +++ b/mayan/apps/appearance/static/appearance/js/mayan_image.js @@ -12,7 +12,7 @@ MayanImage.intialize = function () { animationDuration : 400, buttons : [ 'fullScreen', - 'close' + 'close', ], selector: 'a.fancybox', afterShow: function (instance, current) { @@ -20,6 +20,8 @@ MayanImage.intialize = function () { instance.close(true); }); }, + infobar: true, + }); $('img.lazy-load').lazyload({