Make WordPress Core

Changeset 32909


Ignore:
Timestamp:
06/22/2015 09:32:04 PM (9 years ago)
Author:
wonderboymusic
Message:

Refresh attachment links in the media modal are unneeded since bringing the image editor into it in [27445].

Props rommelxcastro.
Fixes #32550.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r32862 r32909  
    16221622
    16231623.attachment-info .edit-attachment,
    1624 .attachment-info .refresh-attachment,
    16251624.attachment-info .delete-attachment,
    16261625.attachment-info .trash-attachment,
     
    16311630}
    16321631
    1633 .attachment-info .refresh-attachment,
    16341632.attachment-details.needs-refresh .attachment-info .edit-attachment {
    16351633    display: none;
    16361634}
    16371635
    1638 .attachment-details.needs-refresh .attachment-info .refresh-attachment,
    16391636.attachment-info .edit-attachment {
    16401637    display: block;
  • trunk/src/wp-includes/js/media-views.js

    r32908 r32909  
    31833183        'click .untrash-attachment':      'untrashAttachment',
    31843184        'click .edit-attachment':         'editAttachment',
    3185         'click .refresh-attachment':      'refreshAttachment',
    31863185        'keydown':                        'toggleSelectionHandler'
    31873186    },
     
    32583257            this.$el.addClass('needs-refresh');
    32593258        }
    3260     },
    3261     /**
    3262      * @param {Object} event
    3263      */
    3264     refreshAttachment: function( event ) {
    3265         this.$el.removeClass('needs-refresh');
    3266         event.preventDefault();
    3267         this.model.fetch();
    32683259    },
    32693260    /**
  • trunk/src/wp-includes/js/media/views/attachment/details.js

    r31960 r32909  
    3535        'click .untrash-attachment':      'untrashAttachment',
    3636        'click .edit-attachment':         'editAttachment',
    37         'click .refresh-attachment':      'refreshAttachment',
    3837        'keydown':                        'toggleSelectionHandler'
    3938    },
     
    112111    },
    113112    /**
    114      * @param {Object} event
    115      */
    116     refreshAttachment: function( event ) {
    117         this.$el.removeClass('needs-refresh');
    118         event.preventDefault();
    119         this.model.fetch();
    120     },
    121     /**
    122113     * When reverse tabbing(shift+tab) out of the right details panel, deliver
    123114     * the focus to the item in the list that was being edited.
  • trunk/src/wp-includes/media-template.php

    r32773 r32909  
    527527                    <# if ( data.can.save && data.sizes ) { #>
    528528                        <a class="edit-attachment" href="{{ data.editLink }}&amp;image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a>
    529                         <a class="refresh-attachment" href="#"><?php _e( 'Refresh' ); ?></a>
    530529                    <# } #>
    531530                <# } #>
Note: See TracChangeset for help on using the changeset viewer.