aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/subsilver2/template/timezone.js
blob: c5829c0bb1f188c02159a9f55bceec88347c29cb (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