Make WordPress Core

Changeset 24629


Ignore:
Timestamp:
07/10/2013 04:37:50 AM (9 years ago)
Author:
markjaquith
Message:

Revisions: Get rid of an unneccessary ID. IDs are a bad idea.

See #24425.

Location:
trunk/wp-admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin-rtl.css

    r24595 r24629  
    10051005}
    10061006
    1007 #restore-revision {
     1007.diff-header > input.restore-revision {
    10081008    margin-left: 0;
    10091009    margin-right: 10px;
  • trunk/wp-admin/css/wp-admin.css

    r24595 r24629  
    36303630}
    36313631
    3632 #restore-revision {
     3632.diff-header > input.restore-revision {
    36333633    margin-left: 10px;
    36343634}
  • trunk/wp-admin/js/revisions.js

    r24627 r24629  
    463463
    464464        events: {
    465             'click #restore-revision': 'restoreRevision'
     465            'click .restore-revision': 'restoreRevision'
    466466        },
    467467
     
    477477        updateMeta: function( from, to ) {
    478478            this.$el.html( this.template( this.model.toJSON() ) );
    479 
    480             $('#restore-revision').prop( 'disabled', to.attributes.current );
     479            this.$('.restore-revision').prop( 'disabled', to.attributes.current );
    481480        }
    482481    });
  • trunk/wp-admin/revision.php

    r24604 r24629  
    177177            </div>
    178178
    179             <input type="button" id="restore-revision" class="button button-primary" data-restore-link="{{{ data.restoreLink }}}" value="<?php esc_attr_e( 'Restore This Revision' )?>" />
     179            <input type="button" class="restore-revision button button-primary" data-restore-link="{{{ data.restoreLink }}}" value="<?php esc_attr_e( 'Restore This Revision' )?>" />
    180180        </div>
    181181    </div>
Note: See TracChangeset for help on using the changeset viewer.