Gifari Industries - BD Cyber Security Team
Home
/
home
/
decohaslibrary
/
bist
/
wp-content
/
plugins
/
user-registration
/
assets
/
js
/
admin
/
✏️
Editing: deactivation-feedback.min.js
jQuery(function(e){({init:function(){this.event_init()},event_init:function(){var t=this;e(document.body).on("click",'tr[data-plugin="user-registration/user-registration.php"] span.deactivate a',function(t){t.preventDefault(),e("#ur-deactivate-feedback-popup-wrapper").addClass("active")}),e(document.body).on("click",'tr[data-plugin="user-registration-pro/user-registration.php"] span.deactivate a',function(t){t.preventDefault(),e("#ur-deactivate-feedback-popup-wrapper").addClass("active")}),e("#ur-deactivate-feedback-popup-wrapper").click(function(t){e(t.target).closest(".ur-deactivate-feedback-popup-inner").length||e("#ur-deactivate-feedback-popup-wrapper").removeClass("active")}),e("form.ur-deactivate-feedback-form").on("submit",function(a){a.preventDefault(),t.send_data(e(this))}),e("#ur-deactivate-feedback-popup-wrapper").on("click",".close-deactivate-feedback-popup",function(){e("#ur-deactivate-feedback-popup-wrapper").removeClass("active")}),e("input.ur-deactivate-feedback-input").on("click",function(){var t=e(this),a=e('input[name="reason_other"]');"other"===t.val()?a.attr("required","required"):a.removeAttr("required")})},send_data:function(t){var a=t.find('input[name="reason_slug"]:checked').val();if(a!==undefined){if(!t.find("button.submit").hasClass("button-disabled")){var i="",n=t.find('input[name="reason_'+a+'"]');n.length>0&&(i=n.val());({reason_slug:"user_registration_deactivation_notice"})["reason_"+a]=i,e.ajax({url:ur_plugins_params.ajax_url,data:t.serializeArray(),type:"post",beforeSend:function(){t.find("button.submit").addClass("button-disabled button updating-message")}}).done(function(){window.location=t.find("a.skip").attr("href")})}}else alert("Please select at least one option from the list")}}).init()});
💾 Save
❌ Cancel