Skip to content

Commit 19811e2

Browse files
committed
[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 ".".
1 parent 69c701b commit 19811e2

File tree

1 file changed

+2
-1
lines changed
  • src/main/xar-resources/resources/scripts

1 file changed

+2
-1
lines changed

src/main/xar-resources/resources/scripts/query.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ $(document).on("ready", function() {
4747
success: function (data) {
4848
$("#f-load-indicator").hide();
4949
if (data.status == "failed") {
50+
// FIXME the server should respond with an error status code
5051
$("#messages").text(data.message);
5152
} else {
52-
window.location.href = ".";
53+
window.location.reload();
5354
}
5455
}
5556
});

0 commit comments

Comments
 (0)