aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/timezone.js
blob: 44ec1b0979c564a3309aaab81ff3082792995138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* global phpbb */

(function($) { // Avoid conflicts with other libraries

'use strict';

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

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

$(function () {
	phpbb.timezoneEnableDateSelection();
	phpbb.timezonePreselectSelect($('#tz_select_date_suggest').attr('timezone-preselect') === 'true');
});

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