Ticket #21283: 21283.13.diff
File 21283.13.diff, 1003 bytes (added by , 12 years ago) |
---|
-
wp-admin/js/customize-controls.js
842 842 }()); 843 843 844 844 // Temporary accordion code. 845 var accordionFrozen = false;846 845 $('.customize-section-title').bind('click keydown', function( event ) { 847 846 848 847 if ( event.type === 'keydown' && 13 !== event.which ) // enter … … 850 849 851 850 var clicked = $( this ).parents( '.customize-section' ); 852 851 853 if ( clicked.hasClass('cannot-expand') || accordionFrozen)852 if ( clicked.hasClass('cannot-expand') ) 854 853 return; 855 854 856 // Don't want to fire focus and click at same time857 accordionFrozen = true;858 setTimeout(function () {859 accordionFrozen = false;860 }, 400);861 862 855 // Scroll up if on #customize-section-title_tagline 863 856 if ('customize-section-title_tagline' === clicked.attr('id')) 864 857 $('.wp-full-overlay-sidebar-content').scrollTop(0);