2014-09-22 12:01:45 +00:00
|
|
|
/* global jstz */
|
2013-01-21 20:10:44 +00:00
|
|
|
$(document).ready(function () {
|
2014-09-22 12:01:45 +00:00
|
|
|
$('#timezone-offset').val((-new Date().getTimezoneOffset() / 60));
|
|
|
|
$('#timezone').val(jstz.determine().name());
|
2014-05-14 15:00:15 +00: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);
|
|
|
|
}
|
2014-03-01 01:46:27 +00:00
|
|
|
}
|
|
|
|
);
|