Commit daa978936e10e2f48343646259796a87bb10ba21

Authored by Victor Costa
1 parent 57af24ad

Do not apply zoom in images with disable-zoom class

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,7 +1064,7 @@ jQuery(document).ready(function(){
1064 function apply_zoom_to_images(zoom_text) { 1064 function apply_zoom_to_images(zoom_text) {
1065 jQuery(function($) { 1065 jQuery(function($) {
1066 $(window).load( function() { 1066 $(window).load( function() {
1067 - $('#article .article-body img').each( function(index) { 1067 + $('#article .article-body img:not(.disable-zoom)').each( function(index) {
1068 var original = original_image_dimensions($(this).attr('src')); 1068 var original = original_image_dimensions($(this).attr('src'));
1069 if ($(this).width() < original['width'] || $(this).height() < original['height']) { 1069 if ($(this).width() < original['width'] || $(this).height() < original['height']) {
1070 $(this).wrap('<div class="zoomable-image" />'); 1070 $(this).wrap('<div class="zoomable-image" />');