mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
WebUI: Fix upload window closing on old browsers.
This commit is contained in:
parent
d85c3170b2
commit
cd0bcacd9f
1 changed files with 4 additions and 2 deletions
|
@ -50,6 +50,8 @@ window.addEvent('load', function() {
|
|||
var xhr = new XMLHttpRequest();
|
||||
if (xhr.upload)
|
||||
$('submitbutton').addClass("invisible");
|
||||
else
|
||||
$('upload_frame').addEvent('load', function(e) { window.parent.closeWindows(); });
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
@ -60,7 +62,7 @@ window.addEvent('load', function() {
|
|||
<input type="file" id="fileselect" name="fileselect[]" multiple="multiple" /><br/>
|
||||
<div id="submitbutton">
|
||||
<button type="submit">_(Upload Torrents)</button>
|
||||
</div
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue