| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/Helpdesk/theme/js/ |
Upload File : |
$(function () {
$('#login-form').validate({
highlight: function (input) {},
unhighlight: function (input) {},
errorPlacement: function (error, element) {
$(element).parents('.input-group').after(error);
},
submitHandler: submitForm
});
setTimeout(function () { $('#username').focus(); }, 500);
});
function submitForm() {
var data = $("#login-form").serialize();
$.ajax({
type: 'POST',
url: $("#login-form").attr("submiturl"),
data: data,
beforeSend: function() {
$.notifyClose();
$("#btn-login").html('ΕΛΕΓΧΟΣ...');
$("#loading").html('<img src="'+$("#login-form").attr("loaderurl")+'" />');
},
success: function(response) {
if (response == "ok") {
$("#btn-login").html('ΣΥΝΔΕΣΗ...');
$("#loading").html('<img src="'+$("#login-form").attr("loaderurl")+'" />');
setTimeout('window.location.href = "'+$("#login-form").attr("redirecturl")+'";', 2000);
} else {
$.notify({message:' '+response},{type: "warning",delay: 5000,newest_on_top: true});
$("#btn-login").html('ΕΙΣΟΔΟΣ');
$("#loading").html('');
}
}
});
return false;
}