WebUI: Highlight torrent category in context menu

This PR makes it possible to see common category of selected torrents in context menu. Everything should behave exactly like in GUI.

Closes #12701.
PR #21136.
This commit is contained in:
skomerko 2024-08-07 15:40:21 +02:00 committed by GitHub
parent 7b2886e477
commit 142780b863
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 3 deletions

View file

@ -565,7 +565,10 @@ const initializeWindows = function() {
paddingVertical: 0,
paddingHorizontal: 0,
width: 400,
height: 150
height: 150,
onCloseComplete: function() {
updateMainData();
}
});
}
};
@ -584,6 +587,9 @@ const initializeWindows = function() {
data: {
hashes: hashes.join("|"),
category: categoryName
},
onSuccess: function() {
updateMainData();
}
}).send();
};