diff options
author | Cesar G <prototech91@gmail.com> | 2014-09-16 14:47:42 -0700 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2014-09-16 14:47:42 -0700 |
commit | 4df031187f3b847efc4205f93c0db9f4e8240eb3 (patch) | |
tree | 3a1f69acd95da60609da7cf61456ff526f29e914 /phpBB/assets | |
parent | b3576d77da20acc65e5ec9456229e0f269f7d849 (diff) | |
download | forums-4df031187f3b847efc4205f93c0db9f4e8240eb3.tar forums-4df031187f3b847efc4205f93c0db9f4e8240eb3.tar.gz forums-4df031187f3b847efc4205f93c0db9f4e8240eb3.tar.bz2 forums-4df031187f3b847efc4205f93c0db9f4e8240eb3.tar.xz forums-4df031187f3b847efc4205f93c0db9f4e8240eb3.zip |
[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
Diffstat (limited to 'phpBB/assets')
-rw-r--r-- | phpBB/assets/javascript/core.js | 7 |
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() !== '') { |