mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
b3576d77da
commit
4df031187f
1 changed files with 1 additions and 6 deletions
|
@ -782,12 +782,7 @@ phpbb.timezoneSwitchDate = function(keepSelection) {
|
||||||
.insertAfter('#timezone');
|
.insertAfter('#timezone');
|
||||||
} else {
|
} else {
|
||||||
// Copy the content of our backup, so we can remove all unneeded options
|
// Copy the content of our backup, so we can remove all unneeded options
|
||||||
var $replacement = $timezoneCopy.clone();
|
$timezone.html($timezoneCopy.html());
|
||||||
$replacement.attr('id', 'timezone')
|
|
||||||
.css('display', 'block')
|
|
||||||
.attr('name', 'tz');
|
|
||||||
|
|
||||||
$timezone.replaceWith($replacement);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tzDate.val() !== '') {
|
if ($tzDate.val() !== '') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue