blob: 9146e00aade107bf8dce8e80eea70527fd1e21ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
$(document).ready(function () {
var visitortimezone = (-new Date().getTimezoneOffset() / 60);
$('#timezone-offset').val(visitortimezone);
// only enable the submit button once we are sure that the timezone is set
var $loginForm = $('form[name="login"]');
if ($loginForm.length) {
$loginForm.find('input#submit').prop('disabled', false);
}
}
);
|