forked from mirrors/thatmattlove-hyperglass
added 401 unauthorized function to hyperglass.js
This commit is contained in:
parent
8f8641da17
commit
df5d7b055e
1 changed files with 15 additions and 0 deletions
|
|
@ -175,6 +175,21 @@ function submitForm() {
|
||||||
progress.hide();
|
progress.hide();
|
||||||
$('#output').html(`<br><div class="content"><p class="query-output" id="output">${response}</p></div>`);
|
$('#output').html(`<br><div class="content"><p class="query-output" id="output">${response}</p></div>`);
|
||||||
},
|
},
|
||||||
|
401: function(response, code) {
|
||||||
|
clearPage();
|
||||||
|
target_error.show()
|
||||||
|
target_input.addClass('is-danger');
|
||||||
|
target_error.html(`
|
||||||
|
<br>
|
||||||
|
<article class="message is-danger is-small" style="display: block;">
|
||||||
|
<div class="message-header" style="display: block;">
|
||||||
|
Authentication Error
|
||||||
|
</div>
|
||||||
|
<div id="error" style="display: block;" class="message-body">
|
||||||
|
${response.responseText}
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
`);
|
||||||
405: function(response, code) {
|
405: function(response, code) {
|
||||||
clearPage();
|
clearPage();
|
||||||
target_error.show()
|
target_error.show()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue