WordPress.org

Make WordPress Core

Changeset 21519


Ignore:
Timestamp:
08/15/12 05:37:36 (3 years ago)
Author:
lancewillett
Message:

Twenty Twelve: stop nav slide animation when clicking the button multiple times in a row. Props Jayjdk, fixes #21531.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/js/theme.js

    r21405 r21519  
    1515 
    1616        $( '.menu-toggle' ).off( 'click' ).click( function() { 
    17             masthead.find( '.menu' ).slideToggle(); 
     17            masthead.find( '.menu' ).stop().slideToggle(); 
    1818            $( this ).toggleClass( 'toggled-on' ); 
    1919        } ); 
Note: See TracChangeset for help on using the changeset viewer.