Commit e4ca041c06dbf8cb1ad9770d1c0e7d383ca8309f
1 parent
8b8eca62
Exists in
staging
and in
4 other branches
Added a way to disable zoom in small images
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
public/javascripts/application.js
... | ... | @@ -1064,7 +1064,7 @@ jQuery(document).ready(function(){ |
1064 | 1064 | function apply_zoom_to_images(zoom_text) { |
1065 | 1065 | jQuery(function($) { |
1066 | 1066 | $(window).load( function() { |
1067 | - $('#article .article-body img').each( function(index) { | |
1067 | + $('#article .article-body img:not(.disable-zoom)').each( function(index) { | |
1068 | 1068 | var original = original_image_dimensions($(this).attr('src')); |
1069 | 1069 | if ($(this).width() < original['width'] || $(this).height() < original['height']) { |
1070 | 1070 | $(this).wrap('<div class="zoomable-image" />'); | ... | ... |