[noosfero/noosfero][master] Do not apply zoom in images with disable-zoom class

daniel tygel dtygel at eita.org.br
Thu Mar 19 14:04:42 BRT 2015


Uau, great idea! +1



On 19-03-2015 13:53, Victor Costa wrote:
> GitLab
>
>
>       Victor Costa pushed to master at Noosfero / noosfero
>       <https://gitlab.com/noosfero/noosfero>
>
>
>         Commits:
>
>   * *daa97893
>     <https://gitlab.com/noosfero/noosfero/commit/daa978936e10e2f48343646259796a87bb10ba21>*
>
>     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 <#diff-0>
>
>
>         Changes:
>
> # *public/javascripts/application.js * 
> <https://gitlab.com/noosfero/noosfero/commit/daa978936e10e2f48343646259796a87bb10ba21#diff-0> 
>
> ------------------------------------------------------------------------
> |--- 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> 
>
>
>
>
> _______________________________________________
> Noosfero-dev mailing list
> Noosfero-dev at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150319/149cb20a/attachment-0001.html>


More information about the Noosfero-dev mailing list