VRFS-634 persist "Choose..." voice chat input selection correctly in FTUE

This commit is contained in:
Brian Smith 2013-09-05 19:56:12 -04:00
parent 4eeffd9f34
commit 80c06c387a
1 changed files with 8 additions and 1 deletions

View File

@ -323,7 +323,14 @@
devices[deviceKey] + '</option>';
};
for (var i=0; i<funcs.length; i++) {
optionsHtml = '<option selected="selected" value="">Choose...</option>';
// this is a hack so that no voice chat selection is saved as -1
if (i === 1) {
optionsHtml = '<option selected="selected" value="-1">Choose...</option>';
}
else {
optionsHtml = '<option selected="selected" value="">Choose...</option>';
}
var devices = funcs[i](); // returns hash of device id: device name
var $select = $(selectors[i]);
$select.empty();