summaryrefslogtreecommitdiffstats
path: root/wp-admin/js/theme.js
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/js/theme.js')
-rw-r--r--wp-admin/js/theme.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/wp-admin/js/theme.js b/wp-admin/js/theme.js
index 13ed5aa..65b5b4c 100644
--- a/wp-admin/js/theme.js
+++ b/wp-admin/js/theme.js
@@ -96,7 +96,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
},
// Defines search element container.
- searchContainer: $( '.search-form' ),
+ searchContainer: $( '.search-form .search-box' ),
// Search input and view
// for current theme collection.
@@ -118,7 +118,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
// Render and append after screen title.
view.render();
this.searchContainer
- .append( $.parseHTML( '<label class="screen-reader-text" for="wp-filter-search-input">' + l10n.search + '</label>' ) )
+ .append( $.parseHTML( '<label for="wp-filter-search-input">' + l10n.search + '</label>' ) )
.append( view.el )
.on( 'submit', function( event ) {
event.preventDefault();
@@ -926,7 +926,7 @@ themes.view.Preview = themes.view.Details.extend({
currentPreviewDevice = this.$el.data( 'current-preview-device' );
if ( currentPreviewDevice ) {
- self.tooglePreviewDeviceButtons( currentPreviewDevice );
+ self.togglePreviewDeviceButtons( currentPreviewDevice );
}
themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.get( 'id' ) ), { replace: false } );
@@ -988,10 +988,10 @@ themes.view.Preview = themes.view.Details.extend({
.addClass( 'preview-' + device )
.data( 'current-preview-device', device );
- this.tooglePreviewDeviceButtons( device );
+ this.togglePreviewDeviceButtons( device );
},
- tooglePreviewDeviceButtons: function( newDevice ) {
+ togglePreviewDeviceButtons: function( newDevice ) {
var $devices = $( '.wp-full-overlay-footer .devices' );
$devices.find( 'button' )
@@ -1359,7 +1359,6 @@ themes.view.Search = wp.Backbone.View.extend({
searching: false,
attributes: {
- placeholder: l10n.searchPlaceholder,
type: 'search',
'aria-describedby': 'live-search-desc'
},