diff options
Diffstat (limited to 'phpBB/styles/prosilver/template/timezone.js')
-rw-r--r-- | phpBB/styles/prosilver/template/timezone.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/phpBB/styles/prosilver/template/timezone.js b/phpBB/styles/prosilver/template/timezone.js new file mode 100644 index 0000000000..e0d3da9ff7 --- /dev/null +++ b/phpBB/styles/prosilver/template/timezone.js @@ -0,0 +1,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 |