mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06: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:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user