Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Reparing image Toggler

solonovasolonova New
edited February 2012 in Vanilla 2.0 - 2.8

The img toggler not reduce img because 'auto' property cant find by my navigator.

Then i sustitute 'auto' for the "container.width" in js/global.js , line 810

Before:

   var toggler = function(t_img, t_width) {
      if (t_img.css('width') == 'auto')
         t_img.css('width',t_width);
      else
         t_img.css('width','auto');
      return false;
   }

After:

   var toggler = function(t_img, t_width) {
      var container = jQuery('div.Message');
      var smwidth = container.width();
      if (t_img.css('width') != smwidth+'px'){t_img.css('width',t_width);}
      else{t_img.css('width','auto');}
      return false;
   }

Thanks ! :)

Comments

  • 422422 Developer MVP

    Good fix !

    There was an error rendering this rich post.

Sign In or Register to comment.