diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 51451ad..036c777 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1112,11 +1112,12 @@ function apply_zoom_to_images(zoom_text) { if ($(this).width() < original['width'] || $(this).height() < original['height']) { $(this).wrap('
'); $(this).parent('.zoomable-image') - .attr({style: $(this).attr('style')}) - .css({ - width: $(this).width(), - height: $(this).height(), - }); + .attr({style: $(this).attr('style')}) + .addClass(this.className) + .css({ + width: $(this).width(), + height: $(this).height(), + }); $(this).attr('style', ''); $(this).after(''+zoom_text+''); } -- libgit2 0.21.2