Skip to content

Commit

Permalink
reload the current page after updating datastream content (instead of…
Browse files Browse the repository at this point in the history
… displaying the content)
  • Loading branch information
cbeer committed Dec 2, 2013
1 parent abc3993 commit ac50c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fcrepo-http-api/src/main/resources/views/common.js
Expand Up @@ -215,8 +215,8 @@ function updateFile()
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {

if (xhr.status == 204) {
window.location = url;
if (xhr.status == 204 || xhr.status == 201) {
window.location.reload(true);
} else {
ajaxErrorHandler(xhr, "", "Error creating datastream");
}
Expand Down

0 comments on commit ac50c5c

Please sign in to comment.