2013-01-22 00:10:44 +04:00
|
|
|
$(document).ready(function () {
|
|
|
|
var visitortimezone = (-new Date().getTimezoneOffset() / 60);
|
|
|
|
$('#timezone-offset').val(visitortimezone);
|
2014-05-14 19:00:15 +04:00
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
2013-08-18 13:02:08 +04:00
|
|
|
});
|