Only add the autosave notice to the first `<h2>` on the page.

Props azaozz. See #24755.

git-svn-id: http://core.svn.wordpress.org/trunk@24710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith 2013-07-16 13:03:22 +00:00
parent a65a4e664d
commit 367e456472
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ wp.autosave.local = {
this.undo_post_data = wp.autosave.getPostData();
notice = $('#local-storage-notice');
$('.wrap h2').after( notice.addClass('updated').show() );
$('.wrap h2').first().after( notice.addClass('updated').show() );
notice.on( 'click', function(e) {
var target = $( e.target );