VRFS-634 persist "Choose..." voice chat input selection correctly in FTUE
This commit is contained in:
parent
4eeffd9f34
commit
80c06c387a
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue