diff --git a/app/assets/javascripts/configureTrack.js b/app/assets/javascripts/configureTrack.js
index 735944bd7..bfd9f7bfa 100644
--- a/app/assets/javascripts/configureTrack.js
+++ b/app/assets/javascripts/configureTrack.js
@@ -292,7 +292,7 @@
$('#voice-inputs-unused').empty();
$('#voice-inputs-selection').empty();
- $('#audio-inputs-unused').each(function() {
+ $('#audio-inputs-unused > option').each(function() {
if ($('#voice-inputs-unused > option[value="' + this.value + '"]').length === 0) {
$('#voice-inputs-unused').append('');
}
@@ -309,8 +309,7 @@
}
function _addSelectedVoiceInputsToMusicInputs() {
- $('#voice-inputs-selection').each(function() {
-
+ $('#voice-inputs-selection > option').each(function() {
// if this input is not in the available music inputs box and the current selection is not voice devices, add
// it to the unused music inputs box
if ($('#audio-inputs-unused > option[value="' + this.value + '"]').length === 0 && currentVoiceChat != VOICE_CHAT.CHAT) {
@@ -425,7 +424,7 @@
var chatOption = $('#voice-chat-type').val();
if (chatOption == VOICE_CHAT.SESSION) {
- $('#audio-inputs-unused').each(function() {
+ $('#audio-inputs-unused > option').each(function() {
if ($('#voice-inputs-unused > option[value="' + this.value + '"]').length === 0) {
$('#voice-inputs-unused').append('');
}