fix bug where err text wont show

master
lance 5 years ago
parent 8f3e132781
commit d3512d5d0e

@ -33,6 +33,7 @@ $('#create-secret').on('submit', function(event) {
}, },
error: function (res){ error: function (res){
$('#secret-response').html('Something went wrong: ' + JSON.stringify(res.responseJSON)); $('#secret-response').html('Something went wrong: ' + JSON.stringify(res.responseJSON));
$('#secret-response').removeClass('hidden');
} }
}); });
}, 750); }, 750);
@ -44,7 +45,7 @@ $('#retrieve-secret').on('submit', function(event) {
window.setTimeout(function() { window.setTimeout(function() {
var token = $('#secret-token').val(); var token = $('#secret-token').val();
$.ajax({ $.ajax({
method: 'GET', method: 'GET',
url: '{{ site.secret_endpoint }}?token=' + token, url: '{{ site.secret_endpoint }}?token=' + token,
@ -60,6 +61,7 @@ $('#retrieve-secret').on('submit', function(event) {
}, },
error: function (res){ error: function (res){
$('#secret-response').html('Something went wrong: ' + JSON.stringify(res.responseJSON)); $('#secret-response').html('Something went wrong: ' + JSON.stringify(res.responseJSON));
$('#secret-response').removeClass('hidden');
} }
}) })
}, 750); }, 750);

Loading…
Cancel
Save