mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
WebUI: Implement adding categories
This commit is contained in:
parent
a939fca4ac
commit
a4dca52617
7 changed files with 71 additions and 16 deletions
|
@ -304,7 +304,7 @@ initializeWindows = function() {
|
|||
}
|
||||
};
|
||||
|
||||
newCategoryFN = function () {
|
||||
torrentNewCategoryFN = function () {
|
||||
var h = torrentsTable.selectedRowsIds();
|
||||
if (h.length) {
|
||||
new MochaUI.Window({
|
||||
|
@ -323,7 +323,7 @@ initializeWindows = function() {
|
|||
}
|
||||
};
|
||||
|
||||
setCategoryFN = function (categoryHash) {
|
||||
torrentSetCategoryFN = function (categoryHash) {
|
||||
var categoryName = '';
|
||||
if (categoryHash != 0)
|
||||
var categoryName = category_list[categoryHash].name;
|
||||
|
@ -340,6 +340,23 @@ initializeWindows = function() {
|
|||
}
|
||||
};
|
||||
|
||||
createCategoryFN = function () {
|
||||
new MochaUI.Window({
|
||||
id: 'newCategoryPage',
|
||||
title: "QBT_TR(New Category)QBT_TR",
|
||||
loadMethod: 'iframe',
|
||||
contentURL: 'newcategory.html',
|
||||
scrollbars: false,
|
||||
resizable: false,
|
||||
maximizable: false,
|
||||
paddingVertical: 0,
|
||||
paddingHorizontal: 0,
|
||||
width: 250,
|
||||
height: 100
|
||||
});
|
||||
updateMainData();
|
||||
};
|
||||
|
||||
['pauseAll', 'resumeAll'].each(function(item) {
|
||||
addClickEvent(item, function(e) {
|
||||
new Event(e).stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue