mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Merge pull request #4677 from buinsky/WebUI_misc_fixes
WebUI: Misc fixes and improvements
This commit is contained in:
@@ -38,7 +38,8 @@ static const char *__TRANSLATIONS__[] = {
|
|||||||
QT_TRANSLATE_NOOP("HttpServer", "Help"),
|
QT_TRANSLATE_NOOP("HttpServer", "Help"),
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "Logout"),
|
QT_TRANSLATE_NOOP("HttpServer", "Logout"),
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "Exit qBittorrent"),
|
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", "Only one link per line"),
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "Upload local torrent"),
|
QT_TRANSLATE_NOOP("HttpServer", "Upload local torrent"),
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "Download"),
|
QT_TRANSLATE_NOOP("HttpServer", "Download"),
|
||||||
@@ -76,7 +77,6 @@ static const char *__TRANSLATIONS__[] = {
|
|||||||
QT_TRANSLATE_NOOP("HttpServer", "Download limit:"),
|
QT_TRANSLATE_NOOP("HttpServer", "Download limit:"),
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "Apply"),
|
QT_TRANSLATE_NOOP("HttpServer", "Apply"),
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "Add"),
|
QT_TRANSLATE_NOOP("HttpServer", "Add"),
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "Upload Torrents"),
|
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "All"),
|
QT_TRANSLATE_NOOP("HttpServer", "All"),
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "Downloading"),
|
QT_TRANSLATE_NOOP("HttpServer", "Downloading"),
|
||||||
QT_TRANSLATE_NOOP("HttpServer", "Seeding"),
|
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", "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", "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", "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
|
#endif // EXTRA_TRANSLATIONS_H
|
||||||
|
|||||||
@@ -7,6 +7,17 @@
|
|||||||
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
var newLabelKeyboardEvents = new Keyboard({
|
||||||
|
defaultEventType: 'keydown',
|
||||||
|
events: {
|
||||||
|
'enter': function (event) {
|
||||||
|
$('newLabelButton').click();
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
newLabelKeyboardEvents.activate();
|
||||||
|
|
||||||
window.addEvent('domready', function() {
|
window.addEvent('domready', function() {
|
||||||
$('newLabel').focus();
|
$('newLabel').focus();
|
||||||
$('newLabelButton').addEvent('click', function(e) {
|
$('newLabelButton').addEvent('click', function(e) {
|
||||||
|
|||||||
@@ -107,4 +107,5 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
torrentPeersTable.setup('torrentPeersTable', 'torrentPeersTableHeader', null);
|
torrentPeersTable.setup('torrentPeersTable', 'torrentPeersTableHeader', null);
|
||||||
|
$(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click();
|
||||||
</script>
|
</script>
|
||||||
@@ -26,7 +26,13 @@ torrentsTable = new TorrentsTable();
|
|||||||
torrentPeersTable = new TorrentPeersTable();
|
torrentPeersTable = new TorrentPeersTable();
|
||||||
|
|
||||||
var updatePropertiesPanel = function () {};
|
var updatePropertiesPanel = function () {};
|
||||||
|
|
||||||
|
var updateTorrentData = function () {};
|
||||||
|
var updateTrackersData = function () {};
|
||||||
var updateTorrentPeersData = function () {};
|
var updateTorrentPeersData = function () {};
|
||||||
|
var updateWebSeedsData = function () {};
|
||||||
|
var updateTorrentFilesData = function () {};
|
||||||
|
|
||||||
var updateMainData = function () {};
|
var updateMainData = function () {};
|
||||||
var alternativeSpeedLimits = false;
|
var alternativeSpeedLimits = false;
|
||||||
var queueing_enabled = true;
|
var queueing_enabled = true;
|
||||||
@@ -578,8 +584,6 @@ window.addEvent('load', function () {
|
|||||||
$('propertiesPanel_collapseToggle').addEvent('click', function(e){
|
$('propertiesPanel_collapseToggle').addEvent('click', function(e){
|
||||||
updatePropertiesPanel();
|
updatePropertiesPanel();
|
||||||
});
|
});
|
||||||
|
|
||||||
$(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click();
|
|
||||||
},
|
},
|
||||||
column : 'mainColumn',
|
column : 'mainColumn',
|
||||||
height : prop_h
|
height : prop_h
|
||||||
|
|||||||
Reference in New Issue
Block a user