PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 2.0.3
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v2.0.3
3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / assets / js / admin / upgrade.js
everest-forms / assets / js / admin Last commit date
gutenberg 2 years ago admin.js 3 years ago admin.min.js 3 years ago deactivation-feedback.js 3 years ago deactivation-feedback.min.js 3 years ago editor.js 7 years ago editor.min.js 5 years ago evf-admin-email.js 2 years ago evf-admin-email.min.js 2 years ago evf-clipboard.js 7 years ago evf-clipboard.min.js 7 years ago evf-enhanced-select.js 3 years ago evf-enhanced-select.min.js 3 years ago evf-file-uploader.js 3 years ago evf-file-uploader.min.js 3 years ago evf-setup.js 2 years ago evf-setup.min.js 2 years ago extensions.js 2 years ago extensions.min.js 2 years ago form-builder.js 2 years ago form-builder.min.js 2 years ago form-template-controller.js 3 years ago form-template-controller.min.js 3 years ago settings.js 3 years ago settings.min.js 3 years ago tools.js 4 years ago tools.min.js 4 years ago upgrade.js 2 years ago upgrade.min.js 2 years ago
upgrade.js
148 lines
1 /* global evf_upgrade, evf_data */
2 jQuery( function( $ ) {
3
4 /**
5 * Upgrade actions.
6 */
7 var evf_upgrade_actions = {
8 init: function() {
9 $( document.body ).on( 'click dragstart', '.evf-registered-item.upgrade-modal', this.field_upgrade );
10 $( document.body ).on( 'click dragstart', '.evf-registered-item.evf-upgrade-addon', this.evf_upgrade_addon );
11 $( document.body ).on( 'click dragstart', '.evf-registered-item.enable-stripe-model', this.enable_stripe_model );
12 $( document.body ).on( 'click dragstart', '.evf-registered-item.enable-authorize-net-model', this.enable_authorize_net_model );
13 $( document.body ).on( 'click dragstart', '.everest-forms-field-option-row.upgrade-modal', this.feature_upgrade );
14 $( document.body ).on( 'click dragstart', '.evf-upgradable-feature, .everest-forms-btn-group span.upgrade-modal', this.feature_upgrade );
15 },
16 feature_upgrade: function( e ) {
17 e.preventDefault();
18
19 evf_upgrade_actions.upgrade_modal( $( this ).data( 'feature' ) ? $( this ).data( 'feature' ) : $( this ).text() );
20 },
21 field_upgrade: function( e ) {
22 e.preventDefault();
23
24 evf_upgrade_actions.upgrade_modal( $( this ).data( 'feature' ) ? $( this ).data( 'feature' ) : $( this ).text() + ' field' );
25 },
26 evf_upgrade_addon:function(e){
27 e.preventDefault();
28 var fieldType = $(this).data('field-type'),
29 fieldPlan = $(this).data('field-plan'),
30 addonSlug = $(this).data('addon-slug');
31 $.ajax({
32 type: 'POST',
33 url: evf_upgrade.ajax_url,
34 data: {
35 action: 'everest_forms_install_and_active_addons',
36 field_plan: fieldPlan,
37 field_type: fieldType,
38 addon_slug: addonSlug,
39 security : evf_upgrade.evf_install_and_active_nonce
40 },
41 success: function(res) {
42 if(res.success === true) {
43 $.alert( {
44 title: res.data.title,
45 theme: 'jconfirm-modern jconfirm-everest-forms',
46 icon: 'dashicons dashicons-lock',
47 backgroundDismiss: false,
48 scrollToPreviousElement: false,
49 content: res.data.message,
50 buttons:{
51 confirm:{
52 text:res.data.content,
53 keys:['enter'],
54 },
55 },
56 type: 'blue',
57 boxWidth: '565px',
58 } );
59 }
60 if(res.success === false) {
61 $.alert( {
62 title: res.data.addon.name + ' ' + evf_upgrade.upgrade_plan_title,
63 theme: 'jconfirm-modern jconfirm-everest-forms',
64 icon: 'dashicons dashicons-lock',
65 backgroundDismiss: false,
66 scrollToPreviousElement: false,
67 content: evf_upgrade.upgrade_plan_message,
68 type: 'red',
69 boxWidth: '565px',
70 buttons: {
71 confirm: {
72 text: evf_upgrade.upgrade_plan_button,
73 btnClass: 'btn-confirm',
74 keys: ['enter'],
75 action: function () {
76 window.open( evf_upgrade.upgrade_url, '_blank' );
77 }
78 },
79 cancel: {
80 text: evf_data.i18n_ok
81 }
82 }
83 } );
84 }
85 }
86 })
87 },
88 upgrade_modal: function( feature ) {
89 var message = evf_upgrade.upgrade_message.replace( /%name%/g, feature );
90
91 $.alert({
92 title: feature + ' ' + evf_upgrade.upgrade_title,
93 icon: 'dashicons dashicons-lock',
94 content: message,
95 type: 'red',
96 boxWidth: '565px',
97 buttons: {
98 confirm: {
99 text: evf_upgrade.upgrade_button,
100 btnClass: 'btn-confirm',
101 keys: ['enter'],
102 action: function () {
103 window.open( evf_upgrade.upgrade_url, '_blank' );
104 }
105 },
106 cancel: {
107 text: evf_data.i18n_ok
108 }
109 }
110 });
111 },
112 enable_stripe_model: function( e ) {
113 e.preventDefault();
114 $.alert({
115 title: evf_upgrade.enable_stripe_title,
116 content: evf_upgrade.enable_stripe_message,
117 icon: 'dashicons dashicons-info',
118 type: 'blue',
119 buttons : {
120 confirm : {
121 text: evf_data.i18n_close,
122 btnClass: 'btn-confirm',
123 keys: ['enter']
124 }
125 }
126 });
127 },
128 enable_authorize_net_model: function( e ) {
129 e.preventDefault();
130 $.alert({
131 title: evf_upgrade.enable_authorize_net_title,
132 content: evf_upgrade.enable_authorize_net_message,
133 icon: 'dashicons dashicons-info',
134 type: 'blue',
135 buttons : {
136 confirm : {
137 text: evf_data.i18n_close,
138 btnClass: 'btn-confirm',
139 keys: ['enter']
140 }
141 }
142 });
143 }
144 };
145
146 evf_upgrade_actions.init();
147 });
148