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

"use strict";

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

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

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

$(document).ready(
	phpbb.timezonePreselectSelect($('#tz_select_date_suggest').attr('timezone-preselect') === 'true')
);

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