1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-23 10:01:55 +02:00
Files
php-phpbb/phpBB/styles/prosilver/template/timezone.js
2021-05-26 08:58:25 +02:00

19 lines
459 B
JavaScript

/* global phpbb */
(function($) { // Avoid conflicts with other libraries
'use strict';
$('#tz_date').change(() => {
phpbb.timezoneSwitchDate(false);
});
$('#tz_select_date_suggest').click(() => {
phpbb.timezonePreselectSelect(true);
});
$(() => {
phpbb.timezoneEnableDateSelection();
phpbb.timezonePreselectSelect($('#tz_select_date_suggest').attr('timezone-preselect') === 'true');
});
})(jQuery); // Avoid conflicts with other libraries