PluginProbe ʕ •ᴥ•ʔ
Wp Social Login and Register Social Counter / 3.2.1
Wp Social Login and Register Social Counter v3.2.1
3.2.1 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 1 week ago admin-main.js 1 week ago front-main.js 1 week ago social-front.js 1 week 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?window.xsLoginCustomI18n.settings:window.xsLoginCustomI18n.gettingStarted,s=jQuery(e).closest("div.xs-block-footer").find("div.right-content a"),i={val:o,social:t};jQuery.ajax({data:i,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),s.text(window.xsLoginCustomI18n.waiting)},success:function(t){t.success?s.text(n):jQuery(e).closest("div").append('<span style="color:red">'+window.xsLoginCustomI18n.unexpectedError+"</span>")},error:function(e){s.text(window.xsLoginCustomI18n.error)}})}function social_share_enable(e){var t=e.getAttribute("data-key"),o=e.checked?1:"",n=e.checked?window.xsLoginCustomI18n.settings:window.xsLoginCustomI18n.gettingStarted,s=jQuery(e).closest("div.xs-block-footer").find("div.right-content a"),i={val:o,social:t};jQuery.ajax({data:i,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),s.text(window.xsLoginCustomI18n.waiting)},success:function(t){t.success?s.text(n):jQuery(e).closest("div").append('<span style="color:red">'+window.xsLoginCustomI18n.unexpectedError+"</span>")},error:function(e){s.text(window.xsLoginCustomI18n.error)}})}function enable_provider_login(e){var t=e.getAttribute("data-key"),o=e.checked?1:"",n=e.checked?window.xsLoginCustomI18n.settings:window.xsLoginCustomI18n.gettingStarted,s=jQuery(e).closest("div.xs-block-footer").find("div.right-content a"),i={val:o,social:t};console.log(i,s),jQuery.ajax({data:i,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),s.text(window.xsLoginCustomI18n.waiting)},success:function(t){t.success?s.text(n):jQuery(e).closest("div").append('<span style="color:red">'+window.xsLoginCustomI18n.unexpectedError+"</span>")},error:function(e){s.text(window.xsLoginCustomI18n.error)}})}