Changeset 37859
- Timestamp:
- 06/24/2016 03:55:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/media.js
r31996 r37859 1 /* global ajaxurl, attachMediaBoxL10n, _wpMediaGridSettings */1 /* global ajaxurl, attachMediaBoxL10n, _wpMediaGridSettings, showNotice */ 2 2 3 3 var findPosts; … … 100 100 $( '#doaction, #doaction2' ).click( function( event ) { 101 101 $( 'select[name^="action"]' ).each( function() { 102 if ( $(this).val() === 'attach' ) { 102 var optionValue = $( this ).val(); 103 104 if ( 'attach' === optionValue ) { 103 105 event.preventDefault(); 104 106 findPosts.open(); 107 } else if ( 'delete' === optionValue ) { 108 if ( ! showNotice.warn() ) { 109 event.preventDefault(); 110 } 105 111 } 106 112 });
Note: See TracChangeset
for help on using the changeset viewer.