Changeset 58914
- Timestamp:
- 08/19/2024 07:17:42 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/theme.js
r58405 r58914 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.