aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/assets/javascript/core.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index 5fe78cf052..b5187991f9 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -782,12 +782,7 @@ phpbb.timezoneSwitchDate = function(keepSelection) {
.insertAfter('#timezone');
} else {
// Copy the content of our backup, so we can remove all unneeded options
- var $replacement = $timezoneCopy.clone();
- $replacement.attr('id', 'timezone')
- .css('display', 'block')
- .attr('name', 'tz');
-
- $timezone.replaceWith($replacement);
+ $timezone.html($timezoneCopy.html());
}
if ($tzDate.val() !== '') {