Changeset 39018
- Timestamp:
- 10/30/2016 02:58:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/customize-selective-refresh.js
r38973 r39018 1025 1025 1026 1026 body.on( 'click', function( event ) { 1027 if ( $( event.target ).is( '.customize-partial-edit-shortcut, :input, a[href]' ) || 0 !== $( event.target ).closest( 'a' ).length) {1028 return; // Don't toggle shortcuts on form, link, or link child clicks.1027 if ( event.shiftKey || $( event.target ).is( '.customize-partial-edit-shortcut, :input, button *, a[href], a[href] *, object, object *, [tabindex], [tabindex] *' ) ) { 1028 return; // Don't toggle shortcuts on shift-clicks or clicks on (or in) interactive elements. 1029 1029 } 1030 1030 api.selectiveRefresh.editShortcutVisibility.set( 'visible' === api.selectiveRefresh.editShortcutVisibility.get() ? 'hidden' : 'visible' );
Note: See TracChangeset
for help on using the changeset viewer.