1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/12982] Refactoring: made most JS nice.

PHPBB3-12982
This commit is contained in:
Callum Macrae
2014-08-13 22:44:21 +01:00
parent e4e7a8f849
commit 340f48fdeb
3 changed files with 327 additions and 295 deletions

View File

@@ -1,6 +1,8 @@
/* global phpbb */
(function($) { // Avoid conflicts with other libraries
"use strict";
'use strict';
$('#tz_date').change(function() {
phpbb.timezoneSwitchDate(false);
@@ -10,12 +12,9 @@ $('#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')
);
$(function () {
phpbb.timezoneEnableDateSelection();
phpbb.timezonePreselectSelect($('#tz_select_date_suggest').attr('timezone-preselect') === 'true');
})
})(jQuery); // Avoid conflicts with other libraries