PATH:
home
/
lab2454c
/
adenbic.com
/
wp-content
/
plugins
/
yith-woocommerce-quick-view
/
plugin-fw
/
assets
/
js
/* globals ajaxurl */ jQuery( function ( $ ) { $( document ).on( 'click', '.yith-plugin-fw-date-format__option', function () { var $t = $( this ), $wrapper = $t.closest( '.yith-plugin-fw-date-format' ), $example = $wrapper.find( '.example' ); $example.text( $t.data( 'preview' ) ); $wrapper.find( '.yith-date-format-custom' ).val( $t.val() ); } ); $( document ).on( 'click input', '.yith-date-format-custom', function () { var $t = $( this ), $wrapper = $t.closest( '.yith-plugin-fw-radio__row' ); $wrapper.find( 'input[type=radio]' ).prop( 'checked', true ); } ); $( document ).on( 'input yith-date-format-change', '.yith-date-format-custom', function () { var $t = $( this ), $wrapper = $t.closest( '.yith-plugin-fw-date-format' ), dataType = $wrapper.data( 'format' ), js = $wrapper.data( 'js' ), now = $wrapper.data( 'current' ), example = $wrapper.find( '.example' ), spinner = $wrapper.find( '.spinner' ); if ( 'yes' === js ) { var newDate = new Date( now ); newDate = $.datepicker.formatDate( $t.val(), newDate ); example.text( newDate ); } else { clearTimeout( $.data( this, 'timer' ) ); $t.data( 'timer', setTimeout( function () { if ( $t.val() ) { spinner.addClass( 'is-active' ); // Call WP ajax action. var data = { action: dataType + '_format', date : $t.val() }; $.post( ajaxurl, data, function ( response ) { spinner.removeClass( 'is-active' ); example.text( response ); } ); } }, 500 ) ); } } ); $( document ).on( 'yith-plugin-fw-date-format-init', function () { $( '.yith-date-format-custom' ).trigger( 'yith-date-format-change' ); } ).trigger( 'yith-plugin-fw-date-format-init' ); } );
[-] yith-enhanced-select.min.js
[edit]
[-] yith-dashboard.min.js
[edit]
[-] welcome-modal.min.js
[edit]
[-] yith-system-info.min.js
[edit]
[-] yith-promo.min.js
[edit]
[-] multisite-updater.js
[edit]
[-] yith-ui.js
[edit]
[-] yith-promo.js
[edit]
[-] yith-colorpicker.min.js
[edit]
[-] jquery.colorbox.js
[edit]
[+]
..
[+]
jquery-tiptip
[-] metabox.min.js
[edit]
[-] yith-enhanced-select-wc-2.6.js
[edit]
[-] yith-ui.min.js
[edit]
[-] yith-enhanced-select.js
[edit]
[-] metabox.js
[edit]
[-] how-to.js
[edit]
[-] multisite-updater.min.js
[edit]
[-] yith-bh-onboarding.js
[edit]
[-] welcome-modal.js
[edit]
[-] yith-date-format.min.js
[edit]
[-] yith-fields.min.js
[edit]
[-] yith-date-format.js
[edit]
[-] yit-cpt-unlimited.min.js
[edit]
[-] yit-wp-pointer.min.js
[edit]
[-] yit-plugin-panel.js
[edit]
[-] how-to.min.js
[edit]
[-] yith-update-plugins.min.js
[edit]
[-] yith-system-info.js
[edit]
[-] yith-update-plugins.js
[edit]
[-] yith-bh-onboarding.min.js
[edit]
[+]
select2
[-] yith-enhanced-select-wc-2.6.min.js
[edit]
[-] jquery.colorbox.min.js
[edit]
[-] yit-wp-pointer.js
[edit]
[-] yit-plugin-panel.min.js
[edit]
[-] wp-pages.js
[edit]
[-] yit-cpt-unlimited.js
[edit]
[-] yith-dashboard.js
[edit]
[+]
codemirror
[-] wp-pages.min.js
[edit]
[-] yith-fields.js
[edit]