File manager - Edit - /home/aussies6/.trash/wp-content/plugins/order-delivery-date/js/orddd-shop-order.js
Back
jQuery( document ).ready( function(){ jQuery( '.orddd_datepicker' ) .datepicker({ dateFormat: "yy-mm-dd", onSelect: function(selected,evnt) { if ( 'orddd_custom_startdate' == evnt.id ) { jQuery('#orddd_custom_enddate').datepicker('option', 'minDate', new Date( selected ) ); if ( jQuery( '#orddd_custom_enddate' ).val() == '' ) { jQuery( '#orddd_custom_enddate' ).val( selected ); } } if ( 'orddd_custom_enddate' == evnt.id ) { if ( jQuery( '#orddd_custom_startdate' ).val() == '' ) { jQuery( '#orddd_custom_startdate' ).val( selected ); } } } }); jQuery( 'select#order_delivery_date_filter' ).select2(); // If the filter dropdown will have the pre-selected the custom option on page load, then It will show the start and end date if ( 'custom' === jQuery( '.orddd_filter' ).val() ){ jQuery( "#orddd_custom_startdate" ).removeAttr( "style" ); jQuery( "#orddd_custom_enddate" ).removeAttr( "style" ); } jQuery( '.orddd_filter' ).on( 'change', function(){ let value = jQuery( '.orddd_filter' ).val(); if ( value == 'custom' ) { jQuery( "#orddd_custom_startdate" ).removeAttr( "style" ); jQuery( "#orddd_custom_enddate" ).removeAttr( "style" ); } else { jQuery( "#orddd_custom_startdate" ).css( "display", "none" ); jQuery( "#orddd_custom_enddate" ).css( "display", "none" ); jQuery( '#orddd_custom_startdate' ).val(''); jQuery( '#orddd_custom_enddate' ).val(''); } }); });
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings