Skip to content

Commit

Permalink
Update timeout message
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Sep 13, 2020
1 parent 6128d24 commit 95ac104
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/static/js/targer.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,10 @@ function search_action() {
.fail(function (jqxhr, textStatus, error) {
var err = textStatus + ", " + error;
console.log("Request Failed: " + err);
var h = document.createElement("h2") // Create a <h2> element
var t = document.createTextNode("We're sorry, your search timed out. 😥"); // Create a text node
var h = document.createElement("h4") // Create a <h2> element
var t = document.createTextNode("We're sorry 😥 Your search timed out, please try again."); // Create a text node
h.appendChild(t);
$("#displacy").empty();
$("#displacy").append(h); // Append the text to <h2>
document.getElementById("button_search").disabled = false;
});
Expand Down

0 comments on commit 95ac104

Please sign in to comment.