Initial Commit
This commit is contained in:
20
simplicity/template/timezone.js
Normal file
20
simplicity/template/timezone.js
Normal file
@@ -0,0 +1,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
|
Reference in New Issue
Block a user