PluginProbe ʕ •ᴥ•ʔ
Wp Social Login and Register Social Counter / 2.2.4
Wp Social Login and Register Social Counter v2.2.4
trunk 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.10 1.3.11 1.3.2 1.3.3 1.3.4 1.3.6 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.4 1.4.5 1.4.6 1.4.8 1.4.9 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.8.0 1.8.1 1.8.2 1.8.3 1.8.5 1.8.6 1.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.8 2.2.9 3.0.0 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.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0
wp-social / assets / js / admin-login-custom.js
wp-social / assets / js Last commit date
login-page 5 years ago admin-login-custom.js 5 years ago admin-main.js 3 years ago front-main.js 4 years ago social-front.js 5 years ago sortable.min.js 5 years ago
admin-login-custom.js
1 lines
1 "use strict";function xs_show_hide(e){document.getElementById("xs_data_tr__"+e).classList.toggle("active_tr")}function xs_show_hide_role(e){var t=document.getElementById("xs_data_tr__role");1==e?t.classList.add("active_tr"):t.classList.remove("active_tr")}function copy_callback(e){document.getElementById(e+"_callback").select(),document.execCommand("copy")}function xs_counter_open(e){let t=e.getAttribute("xs-target-id");if(!t)return!1;let o=document.getElementById(t),n=document.querySelector(".xs-backdrop");o&&(o.classList.toggle("is-open"),n.classList.toggle("is-open"))}function social_counter_enable(e){var t=e.getAttribute("data-key"),o=e.checked?1:"",n=e.checked?"Settings":"Getting Started",r=jQuery(e).closest("div.xs-block-footer").find("div.right-content a"),c={val:o,social:t};jQuery.ajax({data:c,type:"post",url:window.rest_api_conf.root+"wp_social/v1/counter/enable/"+t,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.rest_api_conf.nonce),r.text("Waiting...")},success:function(t){t.success?r.text(n):jQuery(e).closest("div").append('<span style="color:red">Unexpected error, please reload the page and retry</span>')},error:function(e){r.text("Error!!!")}})}function social_share_enable(e){var t=e.getAttribute("data-key"),o=e.checked?1:"",n=e.checked?"Settings":"Getting Started",r=jQuery(e).closest("div.xs-block-footer").find("div.right-content a"),c={val:o,social:t};jQuery.ajax({data:c,type:"post",url:window.rest_api_conf.root+"wp_social/v1/share/enable/"+t.replace("-",""),beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.rest_api_conf.nonce),r.text("Waiting...")},success:function(t){t.success?r.text(n):jQuery(e).closest("div").append('<span style="color:red">Unexpected error, please reload the page and retry</span>')},error:function(e){r.text("Error!!!")}})}function enable_provider_login(e){var t=e.getAttribute("data-key"),o=e.checked?1:"",n=e.checked?"Settings":"Getting Started",r=jQuery(e).closest("div.xs-block-footer").find("div.right-content a"),c={val:o,social:t};console.log(c,r),jQuery.ajax({data:c,type:"post",url:window.rest_api_conf.root+"wp_social/v1/login/enable/"+t,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.rest_api_conf.nonce),r.text("Waiting...")},success:function(t){t.success?r.text(n):jQuery(e).closest("div").append('<span style="color:red">Unexpected error, please reload the page and retry</span>')},error:function(e){r.text("Error!!!")}})}