Advertisement
Guest User

Maniqui

a guest
Mar 17th, 2009
675
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         onBefore: function(e, target, scrolled) {
  2.                     var $target = $(target),
  3.                         current_width = $('#wrapper').width();
  4.                         no_extra_images_width = current_width + 248;
  5.                         has_extra_images_width = current_width + 348;
  6.                     if (!$target.hasClass('open')) {
  7.                         if ($target.hasClass('has-extra-images')) {
  8.                             $('#wrapper, #content').width(has_extra_images_width);
  9.                         } else {
  10.                             $('#wrapper, #content').width(no_extra_images_width);
  11.                         }
  12.                     }
  13.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement