Blame view

sources/core/js/visitortimezone.js 361 Bytes
03e52840d   Kload   Init
1
2
3
  $(document).ready(function () {
  		var visitortimezone = (-new Date().getTimezoneOffset() / 60);
  		$('#timezone-offset').val(visitortimezone);
6d9380f96   Cédric Dupont   Update sources OC...
4
5
6
7
8
9
10
11
  
  		// 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);
  		}
  	}
  );