Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/smart-custom-fields/js/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/smart-custom-fields/js/editor-datepicker.js |
jQuery( function( $ ) {
$( '.smart-cf-meta-box-table' ).each( function( i, e ) {
$( e ).find( '.smart-cf-datepicker' ).each( function( i, e ) {
if ( $( e ).attr( 'disabled' ) !== 'disabled' ) {
$( e ).datepicker( $( e ).data( 'js' ) );
}
} );
} );
$( document ).on( 'smart-cf-after-add-group', function( e, obj ) {
var parent = $( obj.button ).parents( '.smart-cf-meta-box-repeat-tables' );
parent.find( '.smart-cf-datepicker' ).each( function( i, e ) {
if ( $( e ).attr( 'disabled' ) !== 'disabled' ) {
$( e ).datepicker( $( e ).data( 'js' ) );
}
} );
$( '.smart-cf-datetime_picker.add' ).each( function ( i, e ) {
var data = e.getAttribute( 'data-js' );
data = JSON.parse( data );
data['enableTime'] = true;
flatpickr( this, data );
$( this ).removeClass( 'add' );
} );
} );
} );