/
home
/
vianto5
/
duettowers.mx
/
wp-content
/
plugins
/
wpforms
/
assets
/
js
/
admin
/
builder
/
/home/vianto5/duettowers.mx/wp-content/plugins/wpforms/assets/js/admin/builder
mkdir
upload
Name
Size
Mode
Actions
fields/
-
0755
rm
themes/
-
0755
rm
admin-builder-providers.js
17818
0644
edit
dl
rm
admin-builder-providers.min.js
8454
0644
edit
dl
rm
admin-builder.js
311448
0644
edit
dl
rm
admin-builder.min.js
142059
0644
edit
dl
rm
chocolate-choices.js
2334
0644
edit
dl
rm
chocolate-choices.min.js
470
0644
edit
dl
rm
choices-list.js
3784
0644
edit
dl
rm
choices-list.min.js
714
0644
edit
dl
rm
context-menu.js
18540
0644
edit
dl
rm
context-menu.min.js
8183
0644
edit
dl
rm
drag-fields.js
24725
0644
edit
dl
rm
drag-fields.min.js
9653
0644
edit
dl
rm
dropdown-list.js
9992
0644
edit
dl
rm
dropdown-list.min.js
3863
0644
edit
dl
rm
email-template.js
5144
0644
edit
dl
rm
email-template.min.js
1448
0644
edit
dl
rm
field-map.js
6592
0644
edit
dl
rm
field-map.min.js
2372
0644
edit
dl
rm
form-templates.js
19821
0644
edit
dl
rm
form-templates.min.js
8301
0644
edit
dl
rm
help.js
11572
0644
edit
dl
rm
help.min.js
5016
0644
edit
dl
rm
image-upload.js
4543
0644
edit
dl
rm
image-upload.min.js
2020
0644
edit
dl
rm
multiple-choices.js
15418
0644
edit
dl
rm
multiple-choices.min.js
6367
0644
edit
dl
rm
panel-loader.js
5071
0644
edit
dl
rm
panel-loader.min.js
2252
0644
edit
dl
rm
payments-utils.js
3493
0644
edit
dl
rm
payments-utils.min.js
1963
0644
edit
dl
rm
providers.js
35506
0644
edit
dl
rm
providers.min.js
12791
0644
edit
dl
rm
search-fields.js
4671
0644
edit
dl
rm
search-fields.min.js
2508
0644
edit
dl
rm
settings.js
11412
0644
edit
dl
rm
settings.min.js
4820
0644
edit
dl
rm
setup.js
20288
0644
edit
dl
rm
setup.min.js
9546
0644
edit
dl
rm
smart-tags.js
45899
0644
edit
dl
rm
smart-tags.min.js
15275
0644
edit
dl
rm
templates.js
4070
0644
edit
dl
rm
templates.min.js
1079
0644
edit
dl
rm
wpforms-choicesjs.js
8194
0644
edit
dl
rm
wpforms-choicesjs.min.js
2631
0644
edit
dl
rm
Edit:
/home/vianto5/duettowers.mx/wp-content/plugins/wpforms/assets/js/admin/builder/payments-utils.js
(3493B)
/* global wpforms_builder, wpforms_builder_payments_utils */ // eslint-disable-next-line no-unused-vars const WPFormsBuilderPaymentsUtils = window.WPFormsBuilderPaymentsUtils || ( function( document, window, $ ) { /** * Public functions and properties. * * @since 1.9.5 * * @type {Object} */ const app = { /** * Toggle payments content. * * @since 1.9.5 */ // eslint-disable-next-line complexity toggleContent() { const $input = $( this ), $paymentSettings = $input.closest( '.wpforms-payment-settings' ); if ( $paymentSettings.find( '.wpforms-panel-content-section-payment-toggle-one-time .wpforms-toggle-control > input' ).is( ':checked' ) && $paymentSettings.find( '.wpforms-panel-content-section-payment-toggle-recurring .wpforms-toggle-control > input' ).is( ':checked' ) ) { $input.prop( 'checked', false ); $.alert( { title: wpforms_builder.heads_up, content: $input.attr( 'name' ).includes( 'enable_recurring' ) ? wpforms_builder_payments_utils.payments_disabled_recurring : wpforms_builder_payments_utils.payments_disabled_one_time, icon: 'fa fa-exclamation-circle', type: 'orange', buttons: { confirm: { text: wpforms_builder.ok, btnClass: 'btn-confirm', keys: [ 'enter' ], }, }, } ); } const $wrapper = $input.closest( '.wpforms-panel-content-section-payment' ), isChecked = $input.prop( 'checked' ) && ! $( '#wpforms-panel-field-settings-disable_entries' ).prop( 'checked' ); $wrapper.find( '.wpforms-panel-content-section-payment-toggled-body' ).toggle( isChecked ); $wrapper.toggleClass( 'wpforms-panel-content-section-payment-open', isChecked ); }, /** * Check a plan name on empty value. * * @since 1.9.5 */ checkPlanName() { const $input = $( this ), $plan = $input.closest( '.wpforms-panel-content-section-payment-plan' ), $planName = $plan.find( '.wpforms-panel-content-section-payment-plan-head-title' ); if ( $input.val() ) { $planName.html( $input.val() ); return; } const defaultValue = wpforms_builder_payments_utils.payments_plan_placeholder; $planName.html( defaultValue ); $input.val( defaultValue ); }, /** * Toggle a plan content. * * @since 1.9.5 */ togglePlan() { const $plan = $( this ).closest( '.wpforms-panel-content-section-payment-plan' ), $icon = $plan.find( '.wpforms-panel-content-section-payment-plan-head-buttons-toggle' ); $icon.toggleClass( 'fa-chevron-circle-up fa-chevron-circle-down' ); $plan.find( '.wpforms-panel-content-section-payment-plan-body' ).toggle( $icon.hasClass( 'fa-chevron-circle-down' ) ); }, /** * Delete a plan. * * @since 1.9.5 */ deletePlan() { // Trigger a warning modal when trying to delete a single plan without pro addon. $( this ).closest( '.wpforms-panel-content-section-payment' ).find( '.wpforms-panel-content-section-payment-button-add-plan' ).trigger( 'click' ); }, /** * Rename a plan. * * @since 1.9.5 */ renamePlan() { const $input = $( this ), $plan = $input.closest( '.wpforms-panel-content-section-payment-plan' ), $planName = $plan.find( '.wpforms-panel-content-section-payment-plan-head-title' ); if ( ! $input.val() ) { $planName.html( '' ); return; } $planName.html( $input.val() ); }, }; // Provide access to public functions/properties. return app; }( document, window, jQuery ) );
Save
cmd:
run