Changeset 40799
- Timestamp:
- 05/19/2017 05:26:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/dashboard.js
r40790 r40799 235 235 236 236 $container.on( 'submit', '.community-events-form', function( event ) { 237 var location = $.trim( $( '#community-events-location' ).val() ); 238 237 239 event.preventDefault(); 238 240 241 /* 242 * Don't trigger a search if the search field is empty or the 243 * search term was made of only spaces before being trimmed. 244 */ 245 if ( ! location ) { 246 return; 247 } 248 239 249 app.getEvents({ 240 location: $( '#community-events-location' ).val()250 location: location 241 251 }); 242 252 });
Note: See TracChangeset
for help on using the changeset viewer.