Browse Source

- Fixed upload form in web ui

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
1542ff98bc
  1. 1
      src/webui.qrc
  2. 2
      src/webui/index.html
  3. 20
      src/webui/upload.html

1
src/webui.qrc

@ -3,6 +3,7 @@
<file>webui/index.html</file> <file>webui/index.html</file>
<file>webui/download.html</file> <file>webui/download.html</file>
<file>webui/upload.html</file> <file>webui/upload.html</file>
<file>webui/uploadframe.html</file>
<file>webui/about.html</file> <file>webui/about.html</file>
<file>webui/css/mocha.css</file> <file>webui/css/mocha.css</file>
<file>webui/css/dynamicTable.css</file> <file>webui/css/dynamicTable.css</file>

2
src/webui/index.html

@ -23,7 +23,7 @@
<div id="desktop"> <div id="desktop">
<div id="desktopHeader"> <div id="desktopHeader">
<div id="desktopTitlebar"> <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>
<div id="desktopNavbar"> <div id="desktopNavbar">
<ul> <ul>

20
src/webui/upload.html

@ -7,15 +7,23 @@
<link rel="stylesheet" href="css/mocha.css" type="text/css" /> <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/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" src="scripts/upload.js" charset="utf-8"></script> -->
<script type="text/javascript">
function showSuccess() {
$('myiframe').addClass('invisible');
$('successMessage').removeClass('invisible');
}
</script>
</head> </head>
<body> <body>
<center> <center>
<h1 class="vcenter"><img class="vcenter" title="Download local torrent" src="images/skin/open.png"/>Download local torrent</h1> <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"> <span style="padding: 10px;" class="invisible" id="successMessage">
<br/><br/>
<input type="file" name="torrentfile" id="torrentfile" size="40"/><p>Point to torrent file</p><!--<input type="submit" value="Download"/> --> Torrent files were correctly uploaded.
<a id="upButton" onclick="document.uploadForm.submit();window.parent.document.getElementById('uploadPage').parentNode.removeChild(window.parent.document.getElementById('uploadPage'));">Download</a> </span>
</form> <iframe src="uploadframe.html" width="100%" frameborder="0" style="padding: 10px;" id="myiframe">
</center> <p>Your Web browser does not support iframes</p>
</iframe>
</center>
</body> </body>
</html> </html>

Loading…
Cancel
Save