PluginProbe ʕ •ᴥ•ʔ
Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager / 4.1.41
Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager v4.1.41
4.1.41 4.1.40 4.1.39 4.1.38 trunk 1.2 1.2.1 1.2.2 1.2.3 1.3 1.3.1 1.3.2 1.3.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7 1.7.1 1.7.2 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.2 1.9.3 2.0.0 2.0.1 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.1.1 2.1.4 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.6.0 2.7.0 2.7.1 2.8.0 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.10 3.0.11 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.10 3.5.11 3.5.12 3.5.13 3.5.14 3.5.15 3.5.16 3.5.17 3.5.18 3.5.19 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 4.0.0 4.1.0 4.1.1 4.1.10 4.1.11 4.1.12 4.1.13 4.1.14 4.1.15 4.1.16 4.1.17 4.1.18 4.1.19 4.1.2 4.1.20 4.1.21 4.1.22 4.1.23 4.1.24 4.1.25 4.1.26 4.1.27 4.1.28 4.1.29 4.1.3 4.1.30 4.1.31 4.1.32 4.1.34 4.1.35 4.1.36 4.1.37 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9
flexible-checkout-fields / assets / js / checkout.js
flexible-checkout-fields / assets / js Last commit date
admin-blocks.js 1 week ago admin-blocks.min.js 1 week ago admin-notice.js 1 week ago admin-notice.min.js 1 week ago admin.min.js 1 week ago checkout.js 1 week ago checkout.min.js 1 week ago new-admin.js 1 week ago new-admin.js.LICENSE.txt 1 week ago new-front.js 1 week ago new-front.js.LICENSE.txt 1 week ago
checkout.js
69 lines
1 jQuery(document).on("click",".inspire-file-add-button",function() {
2 jQuery(this).parent().find('input[type=file]').click();
3 });
4
5 jQuery(document).on("click",".inspire-file-delete-button",function() {
6 jQuery(this).parent().find('input[type=file]').val('');
7 jQuery(this).parent().find('input[type=text]').val('');
8 jQuery(this).parent().find('.inspire-file-info').empty();
9 jQuery(this).parent().find('.inspire-file-info').hide();
10 jQuery(this).parent().find('.inspire-file-delete-button').hide();
11 jQuery(this).parent().find('.inspire-file-add-button').show();
12 jQuery(this).parent().find('input[type=text]').trigger('change');
13 });
14
15 jQuery(document).on("change",".inspire-file-file",function() {
16 var id = jQuery(this).parent().attr('id');
17 var $file_info = jQuery('#' + id).find('.inspire-file-info');
18 var $file_error = jQuery('#' + id).find('.inspire-file-error');
19 var $file_add_button = jQuery('#' + id).find('.inspire-file-add-button');
20 $file_info.empty();
21 $file_error.empty();
22 $file_error.hide();
23 $file_info.show();
24 $file_info.append( words.uploading );
25 jQuery(this).parent().find('input[type=text]').val(jQuery(this).val());
26 $file_add_button.hide();
27 var fd = new FormData();
28 var file = jQuery(this).prop('files')[0];
29 var filename = file.name;
30 fd.append(jQuery(this).attr('field_name'), file);
31 fd.append( 'action', 'cf_upload' );
32 fd.append( 'inspire_upload_nonce', inspire_upload_nonce );
33
34 jQuery('#place_order').prop('disabled',true);
35
36 jQuery.ajax({
37 type: 'POST',
38 url: fcf_ajaxurl,
39 data: fd,
40 contentType: false,
41 processData: false,
42 success: function(response){
43 jQuery('#place_order').prop('disabled',false);
44 if ( response != 0 ) {
45 response = JSON.parse(response);
46 if ( response.status != 'ok' ) {
47 $file_add_button.show();
48 $file_info.empty();
49 $file_info.hide();
50 $file_error.empty();
51 $file_error.append( response.message + '<br/>' );
52 $file_error.show();
53 jQuery('#' + id).find('.inspire-file-file').val('');
54 jQuery('#' + id).find('.inspire-file').val('');
55 jQuery('#' + id).find('.inspire-file').trigger('change');
56 }
57 else {
58 jQuery('#' + id).find('.inspire-file-delete-button').show();
59 $file_error.empty();
60 $file_error.hide();
61 $file_info.empty();
62 $file_info.show();
63 $file_info.append(filename + '<br/>');
64 }
65 }
66 }
67 });
68 });
69