File manager - Edit - /home/aussies6/public_html/wp-content/plugins/woocommerce-multistore/assets/single/main.js
Back
jQuery(function ($) { $('.woonet-network-type-whats-difference-btn').on('click', function () { $('.woonet-network-type-whats-difference').toggle(); }); $('.woonet-wizard-option').on('change', function () { window.location.href = $(this).attr('data-target-url'); }); $('#woonet-add-child-site button').on('click', function () { if ($('#woonet-add-child-site input').val() == "") { $('.error').html("<p> URL can not be empty. </p>"); $('.error').css('display', 'block'); return; } var data = { 'action': 'woonet_child_submit', 'url': $('#woonet-add-child-site input').val() }; $.post(ajaxurl, data, function (response) { if (response.error) { $('.error').html("<p>" + response.message + "</p>"); $('.error').css('display', 'block'); } if (response.success) { $('.error').hide(); $('#woonet-add-child-site').hide(); $('#woonet-copy-code').val(response.copy_url); $('#woonet-copy-code-form').show(); } }); }); $('#woonet-add-master-site button').on('click', function () { var data = { 'action': 'woonet_verify', 'url': $('#woonet-add-master-site input').val() }; $.post(ajaxurl, data, function (response) { var data = $.parseJSON(response); if (data.error) { $('.error').html("<p>" + data.message + "</p>"); $('.error').css('display', 'block'); } if (data.success) { window.location.href = window.location.href; $('.notice-success').html("<p>" + data.message + "</p>"); $('.notice-success').css('display', 'block'); $('#woonet-add-child-site input').val(data.copy_url); } }); }); $('#woonet-delete-master-site button').on('click', function () { var data = { 'action': 'woonet_delete_master' }; $.post(ajaxurl, data, function (response) { var data = $.parseJSON(response); if (data.error) { $('.error').html("<p>" + data.message + "</p>"); $('.error').css('display', 'block'); } if (data.success) { window.location.href = window.location.href; } }); }); $('.woonet-taxonomy-select-all').on('click', function (event) { event.preventDefault(); $('input[type=checkbox]').prop('checked', true); }) $('.woonet-taxonomy-select-all-sites').on('click', function (event) { event.preventDefault(); $('input[type=checkbox]', $(this).parent()).prop('checked', true); }) $('.woonet_site_filter').on('change', function (event) { if ($(this).val() == 'all') { window.location.href = $(this).attr('data-attr'); } else { window.location.href = $(this).attr('data-attr') + '&woonet_site_filter=' + $(this).val(); } }) $('.woo-network-order-actions .wc-action-button-processing, .woo-network-order-actions .wc-action-button-complete, .woo-network-order-actions .wc-action-button-cancel').on('click', function (event) { if (!confirm("Order status will be updated immediately. Do you want to proceed?")) { event.preventDefault(); } }) $('.woo_multistore_alert_nag').on('click', function () { if (confirm("Never ask to install addon?")) { $.post(ajaxurl, { 'action': $(this).attr('dismiss-action') }); } }); $('.wc-action-button-refund').on( 'click', function( event ) { if ( ! confirm( "Are you sure you wish to process this refund? This action cannot be undone." ) ) { event.preventDefault(); } }); $('.bulkactions input[type=submit]').on( 'click', function( event ) { if ( $('.bulkactions select[name=action]' ).val() != 'refund' ) { return; } if ( ! confirm( "Are you sure you wish to process this refund? This action cannot be undone." ) ) { event.preventDefault(); } }); });
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings