Browse Source

WebUI: Fix upload window closing on old browsers.

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

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

@ -49,7 +49,9 @@ window.addEvent('load', function() {
// is XHR2 available? // is XHR2 available?
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
if (xhr.upload) if (xhr.upload)
$('submitbutton').addClass("invisible"); $('submitbutton').addClass("invisible");
else
$('upload_frame').addEvent('load', function(e) { window.parent.closeWindows(); });
}); });
</script> </script>
</head> </head>
@ -60,7 +62,7 @@ window.addEvent('load', function() {
<input type="file" id="fileselect" name="fileselect[]" multiple="multiple" /><br/> <input type="file" id="fileselect" name="fileselect[]" multiple="multiple" /><br/>
<div id="submitbutton"> <div id="submitbutton">
<button type="submit">_(Upload Torrents)</button> <button type="submit">_(Upload Torrents)</button>
</div </div>
</form> </form>
</body> </body>
</html> </html>

Loading…
Cancel
Save