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('');
}
});
}