Changeset 9767
- Timestamp:
- 04/23/2020 02:46:07 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/anon-upload-template.php
r9262 r9767 320 320 <p> 321 321 <label for="wptv_speakers"><?php esc_html_e( 'Speakers' ); ?></label> 322 <input type="text" id="wptv_speakers" name="wptv_speakers" value="<?php echo esc_attr( wp_unslash( $_GET['wptv_speakers'] ?? '' ) ); ?>" />322 <input type="text" id="wptv_speakers" name="wptv_speakers" placeholder="John Smith, Jane Doe" value="<?php echo esc_attr( wp_unslash( $_GET['wptv_speakers'] ?? '' ) ); ?>" /> 323 323 </p> 324 324 <p> … … 399 399 }); 400 400 401 // Make the Speakers field "Name, Name, Name" and not allow "Name and Name". 402 $( '#wptv_speakers' ).on( 'change', function() { 403 var $this = $(this); 404 $this.val( $this.val().replace( /\s(and|&|\+)\s/g, ', ' ).replace( /[ ]{2,}/g, ' ' ) ); 405 }); 406 401 407 $( '#video-upload-form' ).submit( function( e ) { 402 408 var scroll = false;
Note: See TracChangeset
for help on using the changeset viewer.