WordPress.org

Make WordPress Core

Ticket #48236: 48236.diff

File 48236.diff, 601 bytes (added by slebog, 5 weeks ago)
  • js/media/views/attachment/details.js

     
    1212         * Reset all the attributes inherited from Attachment including role=checkbox,
    1313         * tabindex, etc., as they are inappropriate for this view. See #47458 and [30483] / #30390.
    1414         */
    15         attributes: {},
     15        attributes: function() {
     16                return {
     17                        'data-id':      this.model.get( 'id' )
     18                };
     19        },
    1620
    1721        events: {
    1822                'change [data-setting]':          'updateSetting',