From 8035bd88ad1a984bd12b7d5b8caa46f2150f0ebb Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 10 Jul 2013 04:37:50 +0000 Subject: [PATCH] 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 --- wp-admin/css/wp-admin-rtl.css | 2 +- wp-admin/css/wp-admin.css | 2 +- wp-admin/js/revisions.js | 5 ++--- wp-admin/revision.php | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/wp-admin/css/wp-admin-rtl.css b/wp-admin/css/wp-admin-rtl.css index 4027e818df..e0b68b0f13 100644 --- a/wp-admin/css/wp-admin-rtl.css +++ b/wp-admin/css/wp-admin-rtl.css @@ -1004,7 +1004,7 @@ th.sorted a span { margin-right: 5px; } -#restore-revision { +.diff-header > input.restore-revision { margin-left: 0; margin-right: 10px; } diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css index f3e0fd60ae..f538afe759 100644 --- a/wp-admin/css/wp-admin.css +++ b/wp-admin/css/wp-admin.css @@ -3629,7 +3629,7 @@ table.diff .diff-addedline ins { margin-left: 5px; } -#restore-revision { +.diff-header > input.restore-revision { margin-left: 10px; } diff --git a/wp-admin/js/revisions.js b/wp-admin/js/revisions.js index 8ec4a2ab92..ead814b71d 100644 --- a/wp-admin/js/revisions.js +++ b/wp-admin/js/revisions.js @@ -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 ); } }); diff --git a/wp-admin/revision.php b/wp-admin/revision.php index bbf751bd67..e621eb216e 100644 --- a/wp-admin/revision.php +++ b/wp-admin/revision.php @@ -176,7 +176,7 @@ require_once( './admin-header.php' ); <# } #> - +