VRFS-633 bug fix

This commit is contained in:
Brian Smith 2013-09-08 21:01:46 -04:00
parent 1aec737a2f
commit 1284e2af5a
1 changed files with 3 additions and 4 deletions

View File

@ -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('<option value="' + this.value + '">' + this.text + '</option>');
}
@ -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('<option value="' + this.value + '">' + this.text + '</option>');
}