1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16414] setup xo for use in future

PHPBB3-16414
This commit is contained in:
hanakin
2020-03-24 11:51:05 -10:00
parent 19e437a7b1
commit d94e8f5721
7 changed files with 48 additions and 27 deletions

View File

@@ -1,20 +1,18 @@
/* global phpbb */
(function($) { // Avoid conflicts with other libraries
(function ($) { // Avoid conflicts with other libraries
'use strict';
'use strict';
$('#tz_date').change(() => {
phpbb.timezoneSwitchDate(false);
});
$('#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');
});
$('#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