mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
- Fixed upload form in web ui
This commit is contained in:
parent
0e9fd2dc3f
commit
1542ff98bc
@ -3,6 +3,7 @@
|
||||
<file>webui/index.html</file>
|
||||
<file>webui/download.html</file>
|
||||
<file>webui/upload.html</file>
|
||||
<file>webui/uploadframe.html</file>
|
||||
<file>webui/about.html</file>
|
||||
<file>webui/css/mocha.css</file>
|
||||
<file>webui/css/dynamicTable.css</file>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<div id="desktop">
|
||||
<div id="desktopHeader">
|
||||
<div id="desktopTitlebar">
|
||||
<h1 class="applicationTitle">qBittorrent Web User Interface <span class="version">version 1.3</span></h1>
|
||||
<h1 class="applicationTitle">qBittorrent Web User Interface <span class="version">version 1.3.1</span></h1>
|
||||
</div>
|
||||
<div id="desktopNavbar">
|
||||
<ul>
|
||||
|
@ -7,15 +7,23 @@
|
||||
<link rel="stylesheet" href="css/mocha.css" type="text/css" />
|
||||
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
||||
<!-- <script type="text/javascript" src="scripts/upload.js" charset="utf-8"></script> -->
|
||||
<script type="text/javascript">
|
||||
function showSuccess() {
|
||||
$('myiframe').addClass('invisible');
|
||||
$('successMessage').removeClass('invisible');
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<h1 class="vcenter"><img class="vcenter" title="Download local torrent" src="images/skin/open.png"/>Download local torrent</h1>
|
||||
<form action="/command/upload" enctype="multipart/form-data" method="post" name="uploadForm">
|
||||
|
||||
<input type="file" name="torrentfile" id="torrentfile" size="40"/><p>Point to torrent file</p><!--<input type="submit" value="Download"/> -->
|
||||
<a id="upButton" onclick="document.uploadForm.submit();window.parent.document.getElementById('uploadPage').parentNode.removeChild(window.parent.document.getElementById('uploadPage'));">Download</a>
|
||||
</form>
|
||||
</center>
|
||||
<span style="padding: 10px;" class="invisible" id="successMessage">
|
||||
<br/><br/>
|
||||
Torrent files were correctly uploaded.
|
||||
</span>
|
||||
<iframe src="uploadframe.html" width="100%" frameborder="0" style="padding: 10px;" id="myiframe">
|
||||
<p>Your Web browser does not support iframes</p>
|
||||
</iframe>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user