mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
set initial value of dropdown
This commit is contained in:
parent
0df2a02bbb
commit
c57f39b605
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,8 @@
|
||||||
inactiveSeedingTimeLimit: Number(origValues[2]),
|
inactiveSeedingTimeLimit: Number(origValues[2]),
|
||||||
maxRatio: Number(origValues[3]),
|
maxRatio: Number(origValues[3]),
|
||||||
maxSeedingTime: Number(origValues[4]),
|
maxSeedingTime: Number(origValues[4]),
|
||||||
maxInactiveSeedingTime: Number(origValues[5])
|
maxInactiveSeedingTime: Number(origValues[5]),
|
||||||
|
shareLimitAction: Number(origValues[6])
|
||||||
};
|
};
|
||||||
|
|
||||||
// select default when orig values not passed. using double equals to compare string and int
|
// select default when orig values not passed. using double equals to compare string and int
|
||||||
|
@ -65,6 +66,7 @@
|
||||||
document.getElementById("setInactiveMinutes").checked = true;
|
document.getElementById("setInactiveMinutes").checked = true;
|
||||||
document.getElementById("inactiveMinutes").value = values.inactiveSeedingTimeLimit;
|
document.getElementById("inactiveMinutes").value = values.inactiveSeedingTimeLimit;
|
||||||
}
|
}
|
||||||
|
document.getElementById('actionList').value = values.shareLimitAction.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
shareLimitChanged();
|
shareLimitChanged();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue