mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 05:38:06 -06:00
[WebUI] Add skip_checking and paused to /command/download and /command/upload
This commit is contained in:
@@ -29,6 +29,15 @@
|
||||
<label for="category" class="leftLabelLarge">QBT_TR(Category:)QBT_TR</label>
|
||||
<input type="text" id="category" name="category" style="width: 16em;"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="start_torrent" class="leftLabelLarge">QBT_TR(Start torrent)QBT_TR</label>
|
||||
<input type="checkbox" id="start_torrent" checked="checked" style="width: 16em;"/>
|
||||
<input type="hidden" id="add_paused" name="paused" value="true" disabled="disabled"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="skip_checking" class="leftLabelLarge">QBT_TR(Skip hash check)QBT_TR</label>
|
||||
<input type="checkbox" name="skip_checking" value="true" style="width: 16em;"/>
|
||||
</div>
|
||||
<div id="submitbutton" style="margin-top: 12px; text-align: center;">
|
||||
<button type="submit" id="submitButton">QBT_TR(Download)QBT_TR</button>
|
||||
</div>
|
||||
@@ -47,6 +56,10 @@ $('download_frame').addEventListener("load", function() {
|
||||
if (submitted)
|
||||
window.parent.closeWindows();
|
||||
});
|
||||
|
||||
$('start_torrent').addEventListener('change', function() {
|
||||
$('add_paused').disabled = $('start_torrent').checked;
|
||||
});
|
||||
</script>
|
||||
<div id="download_spinner" class="mochaSpinner"></div>
|
||||
</body>
|
||||
|
||||
@@ -97,7 +97,7 @@ initializeWindows = function() {
|
||||
paddingVertical: 0,
|
||||
paddingHorizontal: 0,
|
||||
width: 500,
|
||||
height: 200
|
||||
height: 220
|
||||
});
|
||||
updateMainData();
|
||||
});
|
||||
|
||||
@@ -25,6 +25,15 @@
|
||||
<label for="category" class="leftLabelLarge">QBT_TR(Category:)QBT_TR</label>
|
||||
<input type="text" id="category" name="category"/ style="width: 16em;"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="start_torrent" class="leftLabelLarge">QBT_TR(Start torrent)QBT_TR</label>
|
||||
<input type="checkbox" id="start_torrent" checked="checked" style="width: 16em;"/>
|
||||
<input type="hidden" id="add_paused" name="paused" value="true" disabled="disabled"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="skip_checking" class="leftLabelLarge">QBT_TR(Skip hash check)QBT_TR</label>
|
||||
<input type="checkbox" name="skip_checking" value="true" style="width: 16em;"/>
|
||||
</div>
|
||||
<div id="submitbutton" style="margin-top: 30px; text-align: center;">
|
||||
<button type="submit" style="font-size: 1em;">QBT_TR(Upload Torrents)QBT_TR</button>
|
||||
</div>
|
||||
@@ -43,6 +52,10 @@ $('upload_frame').addEventListener("load", function() {
|
||||
if (submitted)
|
||||
window.parent.closeWindows();
|
||||
});
|
||||
|
||||
$('start_torrent').addEventListener('change', function() {
|
||||
$('add_paused').disabled = $('start_torrent').checked;
|
||||
});
|
||||
</script>
|
||||
<div id="upload_spinner" class="mochaSpinner"></div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user