mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
WebUI: fix failed conversion to number
The value has unit suffix (`px`) and require using `parseInt()` for conversion.
Fix up f73f31619d
.
PR #21862.
This commit is contained in:
parent
6ddde3f4b6
commit
6578fd06fd
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
const onStart = function(el, event) {
|
const onStart = function(el, event) {
|
||||||
if (this.canResize) {
|
if (this.canResize) {
|
||||||
this.currentHeaderAction = "resize";
|
this.currentHeaderAction = "resize";
|
||||||
this.startWidth = Number(this.resizeTh.style.width);
|
this.startWidth = parseInt(this.resizeTh.style.width, 10);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.currentHeaderAction = "drag";
|
this.currentHeaderAction = "drag";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue