Ticket #46757: 46757.2.diff
File 46757.2.diff, 2.0 KB (added by , 5 years ago) |
---|
-
src/js/media/views/attachments/browser.js
190 190 disabled: true, 191 191 text: mediaTrash ? l10n.trashSelected : l10n.deletePermanently, 192 192 controller: this.controller, 193 priority: - 60,193 priority: -80, 194 194 click: function() { 195 195 var changed = [], removed = [], 196 196 selection = this.controller.state().get( 'selection' ), … … 246 246 if ( mediaTrash ) { 247 247 this.toolbar.set( 'deleteSelectedPermanentlyButton', new wp.media.view.DeleteSelectedPermanentlyButton({ 248 248 filters: Filters, 249 style: ' primary',249 style: 'link button-link-delete', 250 250 disabled: true, 251 251 text: l10n.deletePermanently, 252 252 controller: this.controller, -
src/js/media/views/button/delete-selected.js
22 22 this.options.filters.model.on( 'change', this.filterChange, this ); 23 23 } 24 24 this.controller.on( 'selection:toggle', this.toggleDisabled, this ); 25 this.controller.on( 'select:activate', this.toggleDisabled, this ); 25 26 }, 26 27 27 28 filterChange: function( model ) { -
src/wp-includes/css/buttons.css
224 224 .wp-core-ui .button-link-delete:hover, 225 225 .wp-core-ui .button-link-delete:focus { 226 226 color: #dc3232; 227 background: transparent; 227 228 } 228 229 230 .wp-core-ui .button-link-delete:disabled { 231 /* overrides the default buttons disabled background */ 232 background: transparent !important; 233 } 234 229 235 .ie8 .wp-core-ui .button-link:focus { 230 236 outline: #5b9dd9 solid 1px; 231 237 }