mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 06:54:20 +00:00
WebUI: Rename function updateCategoryFN to setCategoryFN
This commit is contained in:
parent
c003229fcf
commit
d30a799b45
@ -293,7 +293,7 @@ var TorrentsTableContextMenu = new Class({
|
|||||||
var categoryList = $('contextCategoryList');
|
var categoryList = $('contextCategoryList');
|
||||||
categoryList.empty();
|
categoryList.empty();
|
||||||
categoryList.appendChild(new Element('li', {html: '<a href="javascript:newCategoryFN();"><img src="theme/list-add" alt="QBT_TR(New...)QBT_TR"/> QBT_TR(New...)QBT_TR</a>'}));
|
categoryList.appendChild(new Element('li', {html: '<a href="javascript:newCategoryFN();"><img src="theme/list-add" alt="QBT_TR(New...)QBT_TR"/> QBT_TR(New...)QBT_TR</a>'}));
|
||||||
categoryList.appendChild(new Element('li', {html: '<a href="javascript:updateCategoryFN(0);"><img src="theme/edit-clear" alt="QBT_TR(Reset)QBT_TR"/> QBT_TR(Reset)QBT_TR</a>'}));
|
categoryList.appendChild(new Element('li', {html: '<a href="javascript:setCategoryFN(0);"><img src="theme/edit-clear" alt="QBT_TR(Reset)QBT_TR"/> QBT_TR(Reset)QBT_TR</a>'}));
|
||||||
|
|
||||||
var sortedCategories = []
|
var sortedCategories = []
|
||||||
Object.each(category_list, function (category) {
|
Object.each(category_list, function (category) {
|
||||||
@ -304,7 +304,7 @@ var TorrentsTableContextMenu = new Class({
|
|||||||
var first = true;
|
var first = true;
|
||||||
Object.each(sortedCategories, function (categoryName) {
|
Object.each(sortedCategories, function (categoryName) {
|
||||||
var categoryHash = genHash(categoryName);
|
var categoryHash = genHash(categoryName);
|
||||||
var el = new Element('li', {html: '<a href="javascript:updateCategoryFN(\'' + categoryHash + '\');"><img src="theme/inode-directory"/> ' + escapeHtml(categoryName) + '</a>'});
|
var el = new Element('li', {html: '<a href="javascript:setCategoryFN(\'' + categoryHash + '\');"><img src="theme/inode-directory"/> ' + escapeHtml(categoryName) + '</a>'});
|
||||||
if (first) {
|
if (first) {
|
||||||
el.addClass('separator');
|
el.addClass('separator');
|
||||||
first = false;
|
first = false;
|
||||||
|
@ -323,7 +323,7 @@ initializeWindows = function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
updateCategoryFN = function (categoryHash) {
|
setCategoryFN = function (categoryHash) {
|
||||||
var categoryName = '';
|
var categoryName = '';
|
||||||
if (categoryHash != 0)
|
if (categoryHash != 0)
|
||||||
var categoryName = category_list[categoryHash].name;
|
var categoryName = category_list[categoryHash].name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user