Changeset 10467 for sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/anon-upload-template.php
- Timestamp:
- 11/25/2020 05:27:18 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/anon-upload-template.php
r9767 r10467 299 299 <input type="text" id="wptv_language" name="wptv_language" value="<?php echo esc_attr( wp_unslash( $_GET['wptv_language'] ?? '' ) ); ?>" /> 300 300 </p> 301 <p> 302 <label for="wptv_date"><?php esc_html_e( 'Date Recorded' ); ?></label> 303 <input type="date" id="wptv_date" name="wptv_date" value="<?php echo esc_attr( wp_unslash( $_GET['wptv_date'] ?? '' ) ); ?>" /> 304 </p> 301 305 302 306 <div class="cats"> … … 353 357 email = $( '#wptv_email' ), 354 358 file = $( '#wptv_file' ), 359 recorded = $( '#wptv_date' ), 355 360 honey = $( '#wptv_honey' ); 356 361 … … 405 410 }); 406 411 412 // Pre-select the date category. 413 $( '#wptv_date' ).on( 'change', function() { 414 var year = parseInt( this.value.substring( 0, 4 ) ); 415 416 // Blank the year selections. 417 $( '#category-91093 ul.children input' ).prop( 'checked', false ); 418 419 // Check the year 420 $( '#category-91093 ul.children input' ).filter( function() { 421 return parseInt( $(this).parent().text() ) === year; 422 } ).prop( 'checked', true ) 423 } ); 424 407 425 $( '#video-upload-form' ).submit( function( e ) { 408 426 var scroll = false;
Note: See TracChangeset
for help on using the changeset viewer.