mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Merge pull request #9869 from Piccirello/download-bug
Fix WebUI bug on override of Start Torrent option
This commit is contained in:
commit
0e8323659e
@ -38,7 +38,7 @@
|
||||
<div class="formRow">
|
||||
<label for="start_torrent" class="leftLabelLarge">QBT_TR(Start torrent)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
||||
<input type="checkbox" id="start_torrent" checked="checked" />
|
||||
<input type="hidden" id="add_paused" name="paused" value="true" disabled="disabled" />
|
||||
<input type="hidden" id="add_paused" name="paused" value="false" readonly />
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="skip_checking" class="leftLabelLarge">QBT_TR(Skip hash check)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
||||
@ -84,7 +84,7 @@
|
||||
});
|
||||
|
||||
$('start_torrent').addEventListener('change', function() {
|
||||
$('add_paused').disabled = $('start_torrent').checked;
|
||||
$('add_paused').value = !$('start_torrent').checked;
|
||||
});
|
||||
</script>
|
||||
<div id="download_spinner" class="mochaSpinner"></div>
|
||||
|
@ -32,7 +32,7 @@
|
||||
<div class="formRow">
|
||||
<label for="start_torrent" class="leftLabelLarge">QBT_TR(Start torrent)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
||||
<input type="checkbox" id="start_torrent" checked="checked" />
|
||||
<input type="hidden" id="add_paused" name="paused" value="true" disabled="disabled" />
|
||||
<input type="hidden" id="add_paused" name="paused" value="false" readonly />
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="skip_checking" class="leftLabelLarge">QBT_TR(Skip hash check)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
||||
@ -77,7 +77,7 @@
|
||||
});
|
||||
|
||||
$('start_torrent').addEventListener('change', function() {
|
||||
$('add_paused').disabled = $('start_torrent').checked;
|
||||
$('add_paused').value = !$('start_torrent').checked;
|
||||
});
|
||||
</script>
|
||||
<div id="upload_spinner" class="mochaSpinner"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user