Browse Source

WebUI: Fix upload window closing on old browsers.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 10 years ago
parent
commit
cd0bcacd9f
  1. 4
      src/webui/www/public/upload.html

4
src/webui/www/public/upload.html

@ -50,6 +50,8 @@ window.addEvent('load', function() { @@ -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() { @@ -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…
Cancel
Save