PATH:
home
/
lab2454c
/
caimegroup.com
/
wp-content
/
plugins
/
user-registration
/
assets
/
js
/
admin
/* global ur_plugins_params */ jQuery(function ($) { var ur_deactivation_feedback = { init: function () { this.event_init(); }, event_init: function () { var _that = this; $(document.body).on( "click", 'tr[data-plugin="user-registration/user-registration.php"] span.deactivate a', function (e) { e.preventDefault(); $("#ur-deactivate-feedback-popup-wrapper").addClass( "active" ); } ); $(document.body).on( "click", 'tr[data-plugin="user-registration-pro/user-registration.php"] span.deactivate a', function (e) { e.preventDefault(); $("#ur-deactivate-feedback-popup-wrapper").addClass( "active" ); } ); $("#ur-deactivate-feedback-popup-wrapper").click(function (event) { var $target = $(event.target); if ( !$target.closest(".ur-deactivate-feedback-popup-inner") .length ) { $("#ur-deactivate-feedback-popup-wrapper").removeClass( "active" ); } }); $("form.ur-deactivate-feedback-form").on("submit", function (e) { e.preventDefault(); _that.send_data($(this)); }); $('#ur-deactivate-feedback-popup-wrapper').on('click', '.close-deactivate-feedback-popup', function(){ $('#ur-deactivate-feedback-popup-wrapper').removeClass('active'); }); $('input.ur-deactivate-feedback-input').on( 'click', function() { var $this = $(this); var inputTextBox = $('input[name="reason_other"]'); if ( 'other' === $this.val() ) { inputTextBox.attr('required', 'required') } else { inputTextBox.removeAttr('required'); } } ); }, send_data: function (form) { var reason_slug = form .find('input[name="reason_slug"]:checked') .val(); if (reason_slug === undefined) { alert("Please select at least one option from the list"); return; } if (form.find("button.submit").hasClass("button-disabled")) { return; } var reason_text = ""; var reason_text_el = form.find( 'input[name="reason_' + reason_slug + '"]' ); if (reason_text_el.length > 0) { reason_text = reason_text_el.val(); } var data = { reason_slug: "user_registration_deactivation_notice", }; data["reason_" + reason_slug] = reason_text; $.ajax({ url: ur_plugins_params.ajax_url, data: form.serializeArray(), type: "post", beforeSend: function () { form.find("button.submit").addClass( "button-disabled button updating-message" ); }, }).done(function () { window.location = form.find("a.skip").attr("href"); }); }, }; ur_deactivation_feedback.init(); });
[-] ur-notice.min.js
[edit]
[-] form-modal.min.js
[edit]
[-] deactivation-feedback.js
[edit]
[+]
..
[-] admin.js
[edit]
[-] dashboard-widget.min.js
[edit]
[-] backbone-modal.min.js
[edit]
[-] enhanced-select.min.js
[edit]
[-] form-templates.min.js
[edit]
[-] ur-notice.js
[edit]
[-] backbone-modal.js
[edit]
[-] ur-copy.js
[edit]
[-] live-user-notice.js
[edit]
[-] deactivation-feedback.min.js
[edit]
[+]
gutenberg
[-] form-builder.js
[edit]
[-] form-templates.js
[edit]
[-] form-builder.min.js
[edit]
[-] form-settings.min.js
[edit]
[-] settings.js
[edit]
[-] ur-copy.min.js
[edit]
[-] ur-setup.js
[edit]
[-] form-settings.js
[edit]
[-] ur-setup.min.js
[edit]
[-] enhanced-select.js
[edit]
[-] form-modal.js
[edit]
[-] dashboard-widget.js
[edit]
[-] settings.min.js
[edit]
[-] admin.min.js
[edit]
[-] live-user-notice.min.js
[edit]