mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-05 15:12:32 -06:00
WebUI: enforce string quotes coding style
This commit is contained in:
@@ -150,27 +150,27 @@
|
||||
<div id="upload_spinner" class="mochaSpinner"></div>
|
||||
|
||||
<script>
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
let submitted = false;
|
||||
|
||||
$('uploadForm').addEventListener("submit", function() {
|
||||
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
|
||||
$("uploadForm").addEventListener("submit", function() {
|
||||
$("startTorrentHidden").value = $("startTorrent").checked ? "false" : "true";
|
||||
|
||||
$('dlLimitHidden').value = $('dlLimitText').value.toInt() * 1024;
|
||||
$('upLimitHidden').value = $('upLimitText').value.toInt() * 1024;
|
||||
$("dlLimitHidden").value = $("dlLimitText").value.toInt() * 1024;
|
||||
$("upLimitHidden").value = $("upLimitText").value.toInt() * 1024;
|
||||
|
||||
$('upload_spinner').style.display = "block";
|
||||
$("upload_spinner").style.display = "block";
|
||||
submitted = true;
|
||||
});
|
||||
|
||||
$('upload_frame').addEventListener("load", function() {
|
||||
$("upload_frame").addEventListener("load", function() {
|
||||
if (submitted)
|
||||
window.parent.qBittorrent.Client.closeWindows();
|
||||
});
|
||||
|
||||
if ((Browser.platform === 'ios') || ((Browser.platform === 'mac') && (navigator.maxTouchPoints > 1))) {
|
||||
$('fileselect').accept = ".torrent";
|
||||
if ((Browser.platform === "ios") || ((Browser.platform === "mac") && (navigator.maxTouchPoints > 1))) {
|
||||
$("fileselect").accept = ".torrent";
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user