Changeset 58916
- Timestamp:
- 08/20/2024 02:07:28 PM (7 weeks ago)
- Location:
- branches/6.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.6
-
branches/6.6/src/js/_enqueues/wp/theme.js
r58405 r58916 97 97 98 98 // Defines search element container. 99 searchContainer: $( '.search-form .search-box' ),99 searchContainer: $( '.search-form' ), 100 100 101 101 // Search input and view … … 119 119 view.render(); 120 120 this.searchContainer 121 .find( '.search-box' ) 121 122 .append( $.parseHTML( '<label for="wp-filter-search-input">' + l10n.search + '</label>' ) ) 122 .append( view.el ) 123 .on( 'submit', function( event ) { 124 event.preventDefault(); 125 }); 123 .append( view.el ); 124 125 this.searchContainer.on( 'submit', function( event ) { 126 event.preventDefault(); 127 }); 126 128 }, 127 129
Note: See TracChangeset
for help on using the changeset viewer.