Browse Source

- Fix torrent upload in Web UI (worked randomly)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
bb6468005d
  1. 5
      src/httpconnection.cpp
  2. 1
      src/webui/uploadframe.html

5
src/httpconnection.cpp

@ -309,6 +309,11 @@ void HttpConnection::respondCommand(QString command) @@ -309,6 +309,11 @@ void HttpConnection::respondCommand(QString command)
torrent.close();
}
emit torrentReadyToBeDownloaded(filePath, false, QString(), false);
// Prepare response
generator.setStatusLine(200, "OK");
generator.setContentTypeByExt("html");
generator.setMessage(QString("<script type=\"text/javascript\">window.parent.hideAll();</script>"));
write();
return;
}
if(command == "resumeall") {

1
src/webui/uploadframe.html

@ -12,7 +12,6 @@ function submitForm(form) { @@ -12,7 +12,6 @@ function submitForm(form) {
return false;
}
document.uploadForm.submit();
window.parent.hideAll();
}
</script>
</head>

Loading…
Cancel
Save