Plugin Directory

Changeset 727649


Ignore:
Timestamp:
06/17/2013 09:22:55 PM (13 years ago)
Author:
aliso
Message:

Jetpack: Carousel: Fixing bug where double-clicking a gallery thumbnail broke carousel functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/carousel/jetpack-carousel.js

    r704191 r727649  
    445445                    $(window).unbind('keydown', keyListener);
    446446                    $(window).unbind('resize', resizeListener);
     447                    $(window).scrollTop(scroll);
     448                })
     449                .bind('jp_carousel.afterClose', function(){
    447450                    if ( history.pushState ) {
    448451                        history.pushState("", document.title, window.location.pathname + window.location.search);
     
    450453                        document.location.hash = '';
    451454                    }
    452                     $(window).scrollTop(scroll);
    453455                    gallery.opened = false;
    454456                });
Note: See TracChangeset for help on using the changeset viewer.