Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onBefore: function(e, target, scrolled) {
- var $target = $(target),
- current_width = $('#wrapper').width();
- no_extra_images_width = current_width + 248;
- has_extra_images_width = current_width + 348;
- if (!$target.hasClass('open')) {
- if ($target.hasClass('has-extra-images')) {
- $('#wrapper, #content').width(has_extra_images_width);
- } else {
- $('#wrapper, #content').width(no_extra_images_width);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement