summaryrefslogtreecommitdiffstats
path: root/wp-admin/js/theme.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
commit0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch)
treee139a90049b158d4eed892d1662ee7f5c358fa31 /wp-admin/js/theme.js
parentAdding upstream version 6.5.5+dfsg1. (diff)
downloadwordpress-upstream.tar.xz
wordpress-upstream.zip
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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'
},