VRFS-633 bug fixes

This commit is contained in:
Brian Smith 2013-09-08 20:24:38 -04:00
parent 68b68872e1
commit 1aec737a2f
1 changed files with 9 additions and 9 deletions

View File

@ -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('<option value="' + key + '">' + value + '</option>');
$('#audio-inputs-unused').each(function() {
if ($('#voice-inputs-unused > option[value="' + this.value + '"]').length === 0) {
$('#voice-inputs-unused').append('<option value="' + this.value + '">' + this.text + '</option>');
}
});
}
@ -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('<option value="' + key + '">' + value + '</option>');
if ($('#audio-inputs-unused > option[value="' + this.value + '"]').length === 0 && currentVoiceChat != VOICE_CHAT.CHAT) {
$('#audio-inputs-unused').append('<option value="' + this.value + '">' + this.text + '</option>');
}
});
}
@ -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('<option value="' + key + '">' + value + '</option>');
$('#audio-inputs-unused').each(function() {
if ($('#voice-inputs-unused > option[value="' + this.value + '"]').length === 0) {
$('#voice-inputs-unused').append('<option value="' + this.value + '">' + this.text + '</option>');
}
});
}