mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 07:22:47 -07:00
WebUI: don't auto infer radix
parameter
This commit is contained in:
parent
3ebd15d408
commit
c54750469e
7 changed files with 15 additions and 15 deletions
|
@ -200,8 +200,7 @@ window.qBittorrent.PropFiles = (function() {
|
|||
|
||||
const updatePriorityCombo = function(id, selectedPriority) {
|
||||
const combobox = $("comboPrio" + id);
|
||||
|
||||
if (parseInt(combobox.value) !== selectedPriority)
|
||||
if (parseInt(combobox.value, 10) !== selectedPriority)
|
||||
selectComboboxPriority(combobox, selectedPriority);
|
||||
};
|
||||
|
||||
|
@ -209,7 +208,7 @@ window.qBittorrent.PropFiles = (function() {
|
|||
const options = combobox.options;
|
||||
for (let i = 0; i < options.length; ++i) {
|
||||
const option = options[i];
|
||||
if (parseInt(option.value) === priority)
|
||||
if (parseInt(option.value, 10) === priority)
|
||||
option.selected = true;
|
||||
else
|
||||
option.selected = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue