[noosfero/noosfero][master] Do not apply zoom in images with disable-zoom class
Victor Costa
gitlab at gitlab.com
Thu Mar 19 13:53:02 BRT 2015
Victor Costa pushed to master at Noosfero / noosfero
Commits:
daa97893 by Victor Costa at 2015-03-19T13:52:45Z
Do not apply zoom in images with disable-zoom class
- - - - -
1 changed file:
- public/javascripts/application.js
Changes:
=====================================
public/javascripts/application.js
=====================================
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -1064,7 +1064,7 @@ jQuery(document).ready(function(){
function apply_zoom_to_images(zoom_text) {
jQuery(function($) {
$(window).load( function() {
- $('#article .article-body img').each( function(index) {
+ $('#article .article-body img:not(.disable-zoom)').each( function(index) {
var original = original_image_dimensions($(this).attr('src'));
if ($(this).width() < original['width'] || $(this).height() < original['height']) {
$(this).wrap('<div class="zoomable-image" />');
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/daa978936e10e2f48343646259796a87bb10ba21
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150319/79af79b2/attachment.html>
More information about the Noosfero-dev
mailing list