Merge pull request #11566 from Chocobo1/webui

Fixes for WebUI
This commit is contained in:
Mike Tzou 2019-12-08 12:13:53 +08:00 committed by GitHub
commit 7a657eb5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View File

@ -318,7 +318,7 @@ SearchHandler *SearchPluginManager::startSearch(const QString &pattern, const QS
QString SearchPluginManager::categoryFullName(const QString &categoryName)
{
static const QHash<QString, QString> categoryTable {
const QHash<QString, QString> categoryTable {
{"all", tr("All categories")},
{"movies", tr("Movies")},
{"tv", tr("TV shows")},

View File

@ -1602,14 +1602,14 @@ window.qBittorrent.DynamicTable = (function() {
this.columns['enabled'].updateTd = function(td, row) {
const value = this.getRowValue(row);
if (value) {
td.set('text', "Yes");
td.set('title', "Yes");
td.set('text', 'QBT_TR(Yes)QBT_TR[CONTEXT=SearchPluginsTable]');
td.set('title', 'QBT_TR(Yes)QBT_TR[CONTEXT=SearchPluginsTable]');
td.getParent("tr").addClass("green");
td.getParent("tr").removeClass("red");
}
else {
td.set('text', "No");
td.set('title', "No");
td.set('text', 'QBT_TR(No)QBT_TR[CONTEXT=SearchPluginsTable]');
td.set('title', 'QBT_TR(No)QBT_TR[CONTEXT=SearchPluginsTable]');
td.getParent("tr").addClass("red");
td.getParent("tr").removeClass("green");
}

View File

@ -11,17 +11,14 @@
#categorySelect {
width: 150px;
height: 20px;
}
#pluginsSelect {
width: 150px;
height: 20px;
}
#startSearchButton {
width: 90px;
height: 20px;
}
#searchResultsNoPlugins {
@ -49,7 +46,6 @@
}
#manageSearchPlugins {
line-height: 1.5em;
float: right;
}