mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-08-31 16:12:15 +00:00
Change the speed unit from Bytes/s to KiB/s
Updated the adding torrent dialogs in WebUI. Closes #10017.
This commit is contained in:
parent
75e87de473
commit
4b9f0a87cd
@ -114,18 +114,20 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<label for="dlLimit">QBT_TR(Limit download rate)QBT_TR[CONTEXT=HttpServer]</label>
|
<label for="dlLimitText">QBT_TR(Limit download rate)QBT_TR[CONTEXT=HttpServer]</label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="dlLimit" name="dlLimit" style="width: 16em;" placeholder="Bytes/s" />
|
<input type="hidden" id="dlLimitHidden" name="dlLimit" />
|
||||||
|
<input type="text" id="dlLimitText" style="width: 16em;" placeholder="KiB/s" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<label for="upLimit">QBT_TR(Limit upload rate)QBT_TR[CONTEXT=HttpServer]</label>
|
<label for="upLimitText">QBT_TR(Limit upload rate)QBT_TR[CONTEXT=HttpServer]</label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="upLimit" name="upLimit" style="width: 16em;" placeholder="Bytes/s" />
|
<input type="hidden" id="upLimitHidden" name="upLimit" />
|
||||||
|
<input type="text" id="upLimitText" style="width: 16em;" placeholder="KiB/s" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -155,6 +157,9 @@
|
|||||||
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
|
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
|
||||||
$('rootFolderHidden').value = $('rootFolder').checked ? 'true' : 'false';
|
$('rootFolderHidden').value = $('rootFolder').checked ? 'true' : 'false';
|
||||||
|
|
||||||
|
$('dlLimitHidden').value = $('dlLimitText').value.toInt() * 1024;
|
||||||
|
$('upLimitHidden').value = $('upLimitText').value.toInt() * 1024;
|
||||||
|
|
||||||
$('download_spinner').style.display = "block";
|
$('download_spinner').style.display = "block";
|
||||||
submitted = true;
|
submitted = true;
|
||||||
});
|
});
|
||||||
|
@ -102,18 +102,20 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<label for="dlLimit">QBT_TR(Limit download rate)QBT_TR[CONTEXT=HttpServer]</label>
|
<label for="dlLimitText">QBT_TR(Limit download rate)QBT_TR[CONTEXT=HttpServer]</label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="dlLimit" name="dlLimit" style="width: 16em;" placeholder="Bytes/s" />
|
<input type="hidden" id="dlLimitHidden" name="dlLimit" />
|
||||||
|
<input type="text" id="dlLimitText" style="width: 16em;" placeholder="KiB/s" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<label for="upLimit">QBT_TR(Limit upload rate)QBT_TR[CONTEXT=HttpServer]</label>
|
<label for="upLimitText">QBT_TR(Limit upload rate)QBT_TR[CONTEXT=HttpServer]</label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="upLimit" name="upLimit" style="width: 16em;" placeholder="Bytes/s" />
|
<input type="hidden" id="upLimitHidden" name="upLimit" />
|
||||||
|
<input type="text" id="upLimitText" style="width: 16em;" placeholder="KiB/s" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -131,6 +133,9 @@
|
|||||||
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
|
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
|
||||||
$('rootFolderHidden').value = $('rootFolder').checked ? 'true' : 'false';
|
$('rootFolderHidden').value = $('rootFolder').checked ? 'true' : 'false';
|
||||||
|
|
||||||
|
$('dlLimitHidden').value = $('dlLimitText').value.toInt() * 1024;
|
||||||
|
$('upLimitHidden').value = $('upLimitText').value.toInt() * 1024;
|
||||||
|
|
||||||
$('upload_spinner').style.display = "block";
|
$('upload_spinner').style.display = "block";
|
||||||
submitted = true;
|
submitted = true;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user