Revisions: Get rid of an unneccessary ID. IDs are a bad idea.
See #24425. git-svn-id: http://core.svn.wordpress.org/trunk@24629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9f7ba7539c
commit
8035bd88ad
|
@ -1004,7 +1004,7 @@ th.sorted a span {
|
|||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#restore-revision {
|
||||
.diff-header > input.restore-revision {
|
||||
margin-left: 0;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
|
|
@ -3629,7 +3629,7 @@ table.diff .diff-addedline ins {
|
|||
margin-left: 5px;
|
||||
}
|
||||
|
||||
#restore-revision {
|
||||
.diff-header > input.restore-revision {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
|
|
|
@ -462,7 +462,7 @@ window.wp = window.wp || {};
|
|||
template: wp.template('revisions-meta'),
|
||||
|
||||
events: {
|
||||
'click #restore-revision': 'restoreRevision'
|
||||
'click .restore-revision': 'restoreRevision'
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
|
@ -476,8 +476,7 @@ window.wp = window.wp || {};
|
|||
|
||||
updateMeta: function( from, to ) {
|
||||
this.$el.html( this.template( this.model.toJSON() ) );
|
||||
|
||||
$('#restore-revision').prop( 'disabled', to.attributes.current );
|
||||
this.$('.restore-revision').prop( 'disabled', to.attributes.current );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ require_once( './admin-header.php' );
|
|||
<# } #>
|
||||
</div>
|
||||
|
||||
<input type="button" id="restore-revision" class="button button-primary" data-restore-link="{{{ data.restoreLink }}}" value="<?php esc_attr_e( 'Restore This Revision' )?>" />
|
||||
<input type="button" class="restore-revision button button-primary" data-restore-link="{{{ data.restoreLink }}}" value="<?php esc_attr_e( 'Restore This Revision' )?>" />
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue