PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
besa
/
js
'use strict'; class customLogin { constructor() { this._changeDefaultErrorMessage(); this._initLogin(); } _initLogin() { jQuery('form#custom-login, form#custom-register').on('submit', function (e) { if (!$(this).valid()) return false; $('p.status', this).show().text(besa_ajax_auth_object.loadingmessage); var action = 'ajaxlogin'; var username = $('form#custom-login #cus-username').val(); var password = $('form#custom-login #cus-password').val(); var rememberme = $('#cus-rememberme').is(':checked') ? true : false; var email = ''; security = $('form#custom-login #security').val(); if ($(this).attr('id') == 'custom-register') { action = 'ajaxregister'; username = $('#signonname').val(); password = $('#signonpassword').val(); email = $('#signonemail').val(); var security = $('#signonsecurity').val(); } var self = $(this); $.ajax({ type: 'POST', dataType: 'json', url: besa_ajax_auth_object.ajaxurl, data: { 'action': action, 'username': username, 'password': password, 'email': email, 'rememberme': rememberme, 'security': security }, success: function (data) { $('p.status', self).text(data.message); if (data.loggedin == true) { $('p.status', self).addClass('successful'); document.location.reload(); } else { $('p.status', self).addClass('wrong'); } } }); e.preventDefault(); }); if (jQuery("#custom-register").length) jQuery("#custom-register").validate({ rules: { password2: { equalTo: '#signonpassword' } } });else if (jQuery("#custom-login").length) jQuery("#custom-login").validate(); } _changeDefaultErrorMessage() { jQuery.extend(jQuery.validator.messages, { required: besa_ajax_auth_object.validate.required, remote: besa_ajax_auth_object.validate.remote, email: besa_ajax_auth_object.validate.email, url: besa_ajax_auth_object.validate.url, date: besa_ajax_auth_object.validate.date, dateISO: besa_ajax_auth_object.validate.dateISO, number: besa_ajax_auth_object.validate.number, digits: besa_ajax_auth_object.validate.digits, creditcard: besa_ajax_auth_object.validate.creditcard, equalTo: besa_ajax_auth_object.validate.equalTo, accept: besa_ajax_auth_object.validate.accept, maxlength: jQuery.validator.format(besa_ajax_auth_object.validate.maxlength), minlength: jQuery.validator.format(besa_ajax_auth_object.validate.minlength), rangelength: jQuery.validator.format(besa_ajax_auth_object.validate.rangelength), range: jQuery.validator.format(besa_ajax_auth_object.validate.range), max: jQuery.validator.format(besa_ajax_auth_object.validate.max), min: jQuery.validator.format(besa_ajax_auth_object.validate.min) }); } } jQuery(document).ready(function ($) { new customLogin(); });
[+]
..
[-] woocommerce.js
[edit]
[-] jquery.magnific-popup.min.js
[edit]
[-] jquery.countdownTimer.js
[edit]
[-] custom-slick.js
[edit]
[-] jquery.time-to.min.js
[edit]
[-] jquery.timeago.js
[edit]
[-] bootstrap.min.js
[edit]
[-] ajax-auth-script.min.js
[edit]
[-] jquery.onepagenav.min.js
[edit]
[-] jquery.treeview.js
[edit]
[-] ajax-auth-script.js
[edit]
[-] jquery.mmenu.min.js
[edit]
[-] functions.min.js
[edit]
[-] detectmobilebrowser.min.js
[edit]
[-] customize-preview.js
[edit]
[-] slick.js
[edit]
[-] jquery.fastclick.min.js
[edit]
[-] jquery.validate.js
[edit]
[-] functions.js
[edit]
[-] jquery.sumoselect.js
[edit]
[-] jquery.treeview.min.js
[edit]
[-] jquery.countdownTimer.min.js
[edit]
[-] jquery.instagramfeed.min.js
[edit]
[-] jquery.autocomplete.js
[edit]
[-] jquery.fastclick.js
[edit]
[-] jquery.sumoselect.min.js
[edit]
[-] color-scheme-control.js
[edit]
[-] custom-slick.min.js
[edit]
[-] jquery.mmenu.js
[edit]
[-] html5.min.js
[edit]
[-] js.cookie.js
[edit]
[-] slick.min.js
[edit]
[-] bootstrap.js
[edit]
[-] jquery.instagramfeed.js
[edit]
[-] color-scheme-control.min.js
[edit]
[-] jquery.timeago.min.js
[edit]
[-] html5.js
[edit]
[+]
admin
[-] jquery.time-to.js
[edit]
[-] customize-preview.min.js
[edit]
[-] detectmobilebrowser.js
[edit]
[-] skip-link-fix.js
[edit]
[-] woocommerce.min.js
[edit]
[-] jquery.autocomplete.min.js
[edit]
[-] jquery.onepagenav.js
[edit]
[-] popper.min.js
[edit]
[-] popper.js
[edit]
[-] jquery.validate.min.js
[edit]
[-] skip-link-fix.min.js
[edit]
[-] js.cookie.min.js
[edit]