BUGFIX: Fixed Web UI torrent upload form

This commit is contained in:
Christophe Dumez
2009-03-12 13:26:12 +00:00
parent 16832d52c0
commit 2dd376a5b1
4 changed files with 19 additions and 7 deletions

View File

@@ -1,3 +1,6 @@
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.3.3
- BUGFIX: Fixed Web UI torrent upload form
* Sat Mar 7 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.3.2
- BUGFIX: Fix top toolbar disabling
- BUGFIX: Fix building with Qt 4.5

View File

@@ -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>

View 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>

View File

@@ -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>