mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-29 21:10:31 +02:00
[ticket/13069] Fix timezone location filtering.
$timezone contains the original jQuery object, therefore the subsequent removal of the optgroup children while filtering has no effect on the $replacement object - the one that's now visible to the user. We'll simplify and fix this by injecting the content of the copy instead of going through the trouble of cloning it. PHPBB3-13069
This commit is contained in:
@@ -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() !== '') {
|
||||
|
Reference in New Issue
Block a user