From d30a799b4542803eeb2d2972e6f645ad15a177e4 Mon Sep 17 00:00:00 2001 From: buinsky Date: Wed, 20 Jan 2016 17:39:33 +0300 Subject: [PATCH] WebUI: Rename function updateCategoryFN to setCategoryFN --- src/webui/www/public/scripts/contextmenu.js | 4 ++-- src/webui/www/public/scripts/mocha-init.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webui/www/public/scripts/contextmenu.js b/src/webui/www/public/scripts/contextmenu.js index 5b57ee559..1bbd0f0bd 100644 --- a/src/webui/www/public/scripts/contextmenu.js +++ b/src/webui/www/public/scripts/contextmenu.js @@ -293,7 +293,7 @@ var TorrentsTableContextMenu = new Class({ var categoryList = $('contextCategoryList'); categoryList.empty(); categoryList.appendChild(new Element('li', {html: 'QBT_TR(New...)QBT_TR QBT_TR(New...)QBT_TR'})); - categoryList.appendChild(new Element('li', {html: 'QBT_TR(Reset)QBT_TR QBT_TR(Reset)QBT_TR'})); + categoryList.appendChild(new Element('li', {html: 'QBT_TR(Reset)QBT_TR QBT_TR(Reset)QBT_TR'})); var sortedCategories = [] Object.each(category_list, function (category) { @@ -304,7 +304,7 @@ var TorrentsTableContextMenu = new Class({ var first = true; Object.each(sortedCategories, function (categoryName) { var categoryHash = genHash(categoryName); - var el = new Element('li', {html: ' ' + escapeHtml(categoryName) + ''}); + var el = new Element('li', {html: ' ' + escapeHtml(categoryName) + ''}); if (first) { el.addClass('separator'); first = false; diff --git a/src/webui/www/public/scripts/mocha-init.js b/src/webui/www/public/scripts/mocha-init.js index 1833cadc3..86895c5dc 100644 --- a/src/webui/www/public/scripts/mocha-init.js +++ b/src/webui/www/public/scripts/mocha-init.js @@ -323,7 +323,7 @@ initializeWindows = function() { } }; - updateCategoryFN = function (categoryHash) { + setCategoryFN = function (categoryHash) { var categoryName = ''; if (categoryHash != 0) var categoryName = category_list[categoryHash].name;