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;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#restore-revision {
|
.diff-header > input.restore-revision {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3629,7 +3629,7 @@ table.diff .diff-addedline ins {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#restore-revision {
|
.diff-header > input.restore-revision {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -462,7 +462,7 @@ window.wp = window.wp || {};
|
||||||
template: wp.template('revisions-meta'),
|
template: wp.template('revisions-meta'),
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
'click #restore-revision': 'restoreRevision'
|
'click .restore-revision': 'restoreRevision'
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
|
@ -476,8 +476,7 @@ window.wp = window.wp || {};
|
||||||
|
|
||||||
updateMeta: function( from, to ) {
|
updateMeta: function( from, to ) {
|
||||||
this.$el.html( this.template( this.model.toJSON() ) );
|
this.$el.html( this.template( this.model.toJSON() ) );
|
||||||
|
this.$('.restore-revision').prop( 'disabled', to.attributes.current );
|
||||||
$('#restore-revision').prop( 'disabled', to.attributes.current );
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -176,7 +176,7 @@ require_once( './admin-header.php' );
|
||||||
<# } #>
|
<# } #>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue