|
|
@ -9,10 +9,15 @@ |
|
|
|
|
|
|
|
|
|
|
|
function stateChangeHandler() { |
|
|
|
function stateChangeHandler() { |
|
|
|
if (this.readyState == this.DONE) { |
|
|
|
if (this.readyState == this.DONE) { |
|
|
|
if (this.status == 200) |
|
|
|
if (this.status == 200) { |
|
|
|
window.parent.closeWindows(); |
|
|
|
window.parent.closeWindows(); |
|
|
|
else |
|
|
|
} else { |
|
|
|
alert("Upload Failed!"); |
|
|
|
if (this.responseText != "") { |
|
|
|
|
|
|
|
alert(this.responseText); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
alert("_(Upload Failed!)"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -45,6 +50,8 @@ window.addEvent('load', function() { |
|
|
|
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> |
|
|
@ -55,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> |
|
|
|