From 1aec737a2f931704583b2e699eba36cbe8bb0d68 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sun, 8 Sep 2013 20:24:38 -0400 Subject: [PATCH] VRFS-633 bug fixes --- app/assets/javascripts/configureTrack.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/assets/javascripts/configureTrack.js b/app/assets/javascripts/configureTrack.js index 0750e80aa..735944bd7 100644 --- a/app/assets/javascripts/configureTrack.js +++ b/app/assets/javascripts/configureTrack.js @@ -292,9 +292,9 @@ $('#voice-inputs-unused').empty(); $('#voice-inputs-selection').empty(); - $('#audio-inputs-unused').each(function(key, value) { - if ($('#voice-inputs-unused > option[value="' + key + '"]').length === 0) { - $('#voice-inputs-unused').append(''); + $('#audio-inputs-unused').each(function() { + if ($('#voice-inputs-unused > option[value="' + this.value + '"]').length === 0) { + $('#voice-inputs-unused').append(''); } }); } @@ -309,12 +309,12 @@ } function _addSelectedVoiceInputsToMusicInputs() { - $('#voice-inputs-selection').each(function(key, value) { + $('#voice-inputs-selection').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="' + key + '"]').length === 0 && currentVoiceChat != VOICE_CHAT.CHAT) { - $('#audio-inputs-unused').append(''); + if ($('#audio-inputs-unused > option[value="' + this.value + '"]').length === 0 && currentVoiceChat != VOICE_CHAT.CHAT) { + $('#audio-inputs-unused').append(''); } }); } @@ -425,9 +425,9 @@ var chatOption = $('#voice-chat-type').val(); if (chatOption == VOICE_CHAT.SESSION) { - $('#audio-inputs-unused').each(function(key, value) { - if ($('#voice-inputs-unused > option[value="' + key + '"]').length === 0) { - $('#voice-inputs-unused').append(''); + $('#audio-inputs-unused').each(function() { + if ($('#voice-inputs-unused > option[value="' + this.value + '"]').length === 0) { + $('#voice-inputs-unused').append(''); } }); }