From a8f4ebc06e24c854e918a397e7031a8f750bd331 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 3 Nov 2014 20:50:50 +0000 Subject: bug 3149: admin image preview (colorbox) does not work for small originals git-svn-id: http://piwigo.org/svn/trunk@30358 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/js/batchManagerGlobal.js | 2 +- admin/themes/default/template/batch_manager_unit.tpl | 4 +++- admin/themes/default/template/picture_modify.tpl | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'admin/themes') diff --git a/admin/themes/default/js/batchManagerGlobal.js b/admin/themes/default/js/batchManagerGlobal.js index 8ebf7295d..e3d4a3455 100644 --- a/admin/themes/default/js/batchManagerGlobal.js +++ b/admin/themes/default/js/batchManagerGlobal.js @@ -95,7 +95,7 @@ jQuery(document).ready(function() { $('ul.thumbnails').enableShiftClick(); }); -jQuery("a.preview-box").colorbox(); +jQuery("a.preview-box").colorbox( {photo: true} ); jQuery('.thumbnails img').tipTip({ 'delay' : 0, diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index d4e560aa7..085a9bd63 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -29,7 +29,9 @@ jQuery(function(){ {* *} }); {* *} -jQuery("a.preview-box").colorbox(); +jQuery("a.preview-box").colorbox( { + photo: true +}); }()); {/footer_script} diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index 76b5e14dc..aeba2dd6f 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -38,7 +38,9 @@ jQuery(function(){ {* *} }); {* *} -jQuery("a.preview-box").colorbox(); +jQuery("a.preview-box").colorbox({ + photo: true +}); }()); {/footer_script} -- cgit v1.2.3