WebUI: Fix upload window closing on old browsers.

This commit is contained in:
Vladimir Golovnev (Glassez) 2014-11-07 15:53:11 +03:00
parent d85c3170b2
commit cd0bcacd9f

View file

@ -49,7 +49,9 @@ window.addEvent('load', function() {
// is XHR2 available?
var xhr = new XMLHttpRequest();
if (xhr.upload)
$('submitbutton').addClass("invisible");
$('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>