From 418734b0a3fc6e3ece3a52969176c88d62b4e1b1 Mon Sep 17 00:00:00 2001 From: buinsky Date: Sun, 24 Jan 2016 12:50:45 +0300 Subject: [PATCH 1/3] WebUI: Fix JavaScript exception on WebUI load --- src/webui/www/public/properties_content.html | 3 ++- src/webui/www/public/scripts/client.js | 14 +++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/webui/www/public/properties_content.html b/src/webui/www/public/properties_content.html index 4c1276c3e..60b3dca83 100644 --- a/src/webui/www/public/properties_content.html +++ b/src/webui/www/public/properties_content.html @@ -107,4 +107,5 @@ \ No newline at end of file + $(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click(); + diff --git a/src/webui/www/public/scripts/client.js b/src/webui/www/public/scripts/client.js index 23473ea37..3757c142d 100644 --- a/src/webui/www/public/scripts/client.js +++ b/src/webui/www/public/scripts/client.js @@ -25,9 +25,15 @@ torrentsTable = new TorrentsTable(); torrentPeersTable = new TorrentPeersTable(); -var updatePropertiesPanel = function(){}; -var updateTorrentPeersData = function(){}; -var updateMainData = function(){}; +var updatePropertiesPanel = function () {}; + +var updateTorrentData = function () {}; +var updateTrackersData = function () {}; +var updateTorrentPeersData = function () {}; +var updateWebSeedsData = function () {}; +var updateTorrentFilesData = function () {}; + +var updateMainData = function () {}; var alternativeSpeedLimits = false; var queueing_enabled = true; var syncMainDataTimerPeriod = 1500; @@ -578,8 +584,6 @@ window.addEvent('load', function () { $('propertiesPanel_collapseToggle').addEvent('click', function(e){ updatePropertiesPanel(); }); - - $(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click(); }, column : 'mainColumn', height : prop_h From 3591a0cedd3294b233a35b48e5d7f1d248c99bd2 Mon Sep 17 00:00:00 2001 From: buinsky Date: Sun, 24 Jan 2016 13:14:51 +0300 Subject: [PATCH 2/3] WebUI: Repair translation --- src/webui/extra_translations.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/webui/extra_translations.h b/src/webui/extra_translations.h index 695f6c302..350682447 100644 --- a/src/webui/extra_translations.h +++ b/src/webui/extra_translations.h @@ -38,7 +38,8 @@ static const char *__TRANSLATIONS__[] = { QT_TRANSLATE_NOOP("HttpServer", "Help"), QT_TRANSLATE_NOOP("HttpServer", "Logout"), QT_TRANSLATE_NOOP("HttpServer", "Exit qBittorrent"), - QT_TRANSLATE_NOOP("HttpServer", "Download Torrents from their URL or Magnet link"), + QT_TRANSLATE_NOOP("HttpServer", "Download from URLs"), + QT_TRANSLATE_NOOP("HttpServer", "Download Torrents from their URLs or Magnet links"), QT_TRANSLATE_NOOP("HttpServer", "Only one link per line"), QT_TRANSLATE_NOOP("HttpServer", "Upload local torrent"), QT_TRANSLATE_NOOP("HttpServer", "Download"), @@ -76,7 +77,6 @@ static const char *__TRANSLATIONS__[] = { QT_TRANSLATE_NOOP("HttpServer", "Download limit:"), QT_TRANSLATE_NOOP("HttpServer", "Apply"), QT_TRANSLATE_NOOP("HttpServer", "Add"), - QT_TRANSLATE_NOOP("HttpServer", "Upload Torrents"), QT_TRANSLATE_NOOP("HttpServer", "All"), QT_TRANSLATE_NOOP("HttpServer", "Downloading"), QT_TRANSLATE_NOOP("HttpServer", "Seeding"), @@ -114,7 +114,8 @@ static const struct { const char *source; const char *comment; } __COMMENTED_TRA QT_TRANSLATE_NOOP3("HttpServer", "Thursday", "Schedule the use of alternative rate limits on ..."), QT_TRANSLATE_NOOP3("HttpServer", "Friday", "Schedule the use of alternative rate limits on ..."), QT_TRANSLATE_NOOP3("HttpServer", "Saturday", "Schedule the use of alternative rate limits on ..."), - QT_TRANSLATE_NOOP3("HttpServer", "Sunday", "Schedule the use of alternative rate limits on ...") + QT_TRANSLATE_NOOP3("HttpServer", "Sunday", "Schedule the use of alternative rate limits on ..."), + QT_TRANSLATE_NOOP3("HttpServer", "Upload Torrents", "Upload torrent files to qBittorent using WebUI") }; #endif // EXTRA_TRANSLATIONS_H From c04f50286322e676887365dcb9a3b9594b5644ef Mon Sep 17 00:00:00 2001 From: buinsky Date: Fri, 29 Jan 2016 18:02:36 +0300 Subject: [PATCH 3/3] WebUI: Submit the label in the new label dialog on pressing enter key --- src/webui/www/public/newlabel.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/webui/www/public/newlabel.html b/src/webui/www/public/newlabel.html index ccf226bc2..bff86e307 100644 --- a/src/webui/www/public/newlabel.html +++ b/src/webui/www/public/newlabel.html @@ -7,6 +7,17 @@