Customizer: Remove "Add a Widget" button from tab order when reordering widgets.

fixes #28890.

git-svn-id: https://develop.svn.wordpress.org/trunk@29243 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-07-19 03:31:49 +00:00
parent 45ec949d58
commit d83dbfca17

View File

@ -1588,6 +1588,9 @@
} );
this.$sectionContent.find( '.first-widget .move-widget' ).focus();
this.$sectionContent.find( '.add-new-widget' ).prop( 'tabIndex', -1 );
} else {
this.$sectionContent.find( '.add-new-widget' ).prop( 'tabIndex', 0 );
}
},