|
|
@ -160,7 +160,7 @@ window.qBittorrent.PropFiles = (function() { |
|
|
|
setCheckboxPartial(checkbox); |
|
|
|
setCheckboxPartial(checkbox); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const isPriorityComboExists = function(id) { |
|
|
|
const isPriorityComboExists = function(id) { |
|
|
|
return ($('comboPrio' + id) !== null); |
|
|
|
return ($('comboPrio' + id) !== null); |
|
|
@ -631,7 +631,7 @@ window.qBittorrent.PropFiles = (function() { |
|
|
|
rowElem.addClass("invisible"); |
|
|
|
rowElem.addClass("invisible"); |
|
|
|
else |
|
|
|
else |
|
|
|
rowElem.removeClass("invisible"); |
|
|
|
rowElem.removeClass("invisible"); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Update a node's collapsed state and icon |
|
|
|
* Update a node's collapsed state and icon |
|
|
@ -642,7 +642,6 @@ window.qBittorrent.PropFiles = (function() { |
|
|
|
if (span === null) |
|
|
|
if (span === null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
const td = span.parentElement; |
|
|
|
const td = span.parentElement; |
|
|
|
const rowElem = td.parentElement; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// store collapsed state
|
|
|
|
// store collapsed state
|
|
|
|
td.set("data-collapsed", isCollapsed); |
|
|
|
td.set("data-collapsed", isCollapsed); |
|
|
@ -653,7 +652,7 @@ window.qBittorrent.PropFiles = (function() { |
|
|
|
collapseIcon.addClass("rotate"); |
|
|
|
collapseIcon.addClass("rotate"); |
|
|
|
else |
|
|
|
else |
|
|
|
collapseIcon.removeClass("rotate"); |
|
|
|
collapseIcon.removeClass("rotate"); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const _isCollapsed = function(node) { |
|
|
|
const _isCollapsed = function(node) { |
|
|
|
const span = $('filesTablefileName' + node.rowId); |
|
|
|
const span = $('filesTablefileName' + node.rowId); |
|
|
@ -692,7 +691,7 @@ window.qBittorrent.PropFiles = (function() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
torrentFilesTable.altRow(); |
|
|
|
torrentFilesTable.altRow(); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Collapses a folder node with the option to recursively collapse all children |
|
|
|
* Collapses a folder node with the option to recursively collapse all children |
|
|
|