aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/timezone.js
blob: da0a2b0bfd17bdeb494edba298e258958a5799f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(function($) { // Avoid conflicts with other libraries

$('#tz_date').change(function() {
	phpbb.timezone_switch_date(false);
});

$('#tz_select_date_suggest').click(function(){
	phpbb.timezone_preselect_select(true);
});

$(document).ready(
	phpbb.timezone_enable_date_selection
);

$(document).ready(
	phpbb.timezone_preselect_select($('#tz_select_date_suggest').attr('data-is-registration') == 'true')
);

})(jQuery); // Avoid conflicts with other libraries