PageSourceSearch

https://autosolutionsconnect.com/wp-content/plugins/wc-frontend-ma…/libs/login-popup/wcfm-login.js?ver=6.8.1

js autosolutionsconnect.com collected 2026-10-02 01:23:55 UTC 3,655 bytes, 91 lines download raw bytes

1jQuery(document).ready(function($) {
2	wcfmInitLoginPopup();
3});
4
5function wcfmInitLoginPopup() {
6  jQuery('.wcfm_login_popup').each( function() {
7  	jQuery(this).click( function( event ) {
8			event.preventDefault();
9			jQuerylogin_popup = jQuery(this);
10			
11			// Ajax Call for Fetching Quick Edit HTML
12			jQuery('body').block({
13				message: null,
14				overlayCSS: {
15					background: '#fff',
16					opacity: 0.6
17				}
18			});
19			var data = {
20				action  : 'wcfm_login_popup_form',
21				wcfm_ajax_nonce             : wcfm_params.wcfm_ajax_nonce
22			}	
23			
24			jQuery.ajax({
25				type    :		'POST',
26				url     : wcfm_params.ajax_url,
27				data    : data,
28				success :	function(response) {
29					// Intialize colorbox
30					jQuery.colorbox( { html: response, width: $popup_width,
31						onComplete:function() {
32					
33							// Intialize Quick Update Action
34							jQuery('#wcfm_login_popup_button').click(function() {
35								$wcfm_is_valid_form = true;
36								jQuery('#wcfm_login_popup_form').block({
37									message: null,
38									overlayCSS: {
39										background: '#fff',
40										opacity: 0.6
41									}
42								});
43								jQuery('.wcfm-message').html('').removeClass('wcfm-error').removeClass('wcfm-success').slideUp();
44								if( jQuery('input[name=wcfm_login_popup_username]').val().length == 0 ) {
45									jQuery('#wcfm_login_popup_form .wcfm-message').html('<span class="wcicon-status-cancelled"></span>' + wcfm_login_messages.no_username).addClass('wcfm-error').slideDown();
46									wcfm_notification_sound.play();
47									jQuery('#wcfm_login_popup_form').unblock();
48								} else if( jQuery('input[name=wcfm_login_popup_password]').val().length == 0 ) {
49									jQuery('#wcfm_login_popup_form .wcfm-message').html('<span class="wcicon-status-cancelled"></span>' + wcfm_login_messages.no_password).addClass('wcfm-error').slideDown();
50									wcfm_notification_sound.play();
51									jQuery('#wcfm_login_popup_form').unblock();
52								} else {
53									jQuery( document.body ).trigger( 'wcfm_form_validate', jQuery('#wcfm_login_popup_form') );
54									if( !$wcfm_is_valid_form ) {
55										wcfm_notification_sound.play();
56										jQuery('#wcfm_login_popup_form').unblock();
57									} else {
58										jQuery('#wcfm_login_popup_button').hide();
59										var data = {
60											action : 'wcfm_login_popup_submit', 
61											wcfm_login_popup_form : jQuery('#wcfm_login_popup_form').serialize(),
62											wcfm_ajax_nonce       : wcfm_params.wcfm_ajax_nonce
63										}	
64										jQuery.post(wcfm_params.ajax_url, data, function(response) {
65											if(response) {
66												jQueryresponse_json = jQuery.parseJSON(response);
67												wcfm_notification_sound.play();
68												jQuery('.wcfm-message').html('').removeClass('wcfm-error').removeClass('wcfm-success').slideUp();
69												if(jQueryresponse_json.status) {
70													jQuery('#wcfm_login_popup_form .wcfm-message').html('<span class="wcicon-status-completed"></span>' + jQueryresponse_json.message).addClass('wcfm-success').slideDown();
71													window.location = window.location.href;
72												} else {
73													jQuery('#wcfm_login_popup_form .wcfm-message').html('<span class="wcicon-status-cancelled"></span>' + jQueryresponse_json.message).addClass('wcfm-error').slideDown();
74													jQuery('#wcfm_login_popup_button').show();
75													jQuery('#wcfm_login_popup_form').unblock();
76												}
77											}
78										} );
79									}
80								}
81							});
82						}
83					});
84					jQuery('body').unblock();
85				}
86			});
87			
88			return false;
89		} );
90  } );
91}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.