Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[fix] js: reindex success handler
Use `reload()` method to reload
the page after successful
generation of the function documentation
rather than resetting the `href` property to ".".
  • Loading branch information
line-o committed Jun 20, 2021
commit 19811e205929a31679c75437452d6e86d589e3c5
3 changes: 2 additions & 1 deletion src/main/xar-resources/resources/scripts/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ $(document).on("ready", function() {
success: function (data) {
$("#f-load-indicator").hide();
if (data.status == "failed") {
// FIXME the server should respond with an error status code
$("#messages").text(data.message);
} else {
window.location.href = ".";
window.location.reload();
}
}
});
Expand Down