mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
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:
parent
7b2886e477
commit
142780b863
3 changed files with 31 additions and 3 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue