Skip to content

Commit

Permalink
Logic fix to not remove hint message in ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillon Lareau committed Apr 17, 2020
1 parent 3f4777c commit 45fb825
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions huntserver/static/huntserver/hint.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jQuery(document).ready(function($) {
}
$("#num_available_hints").html(string_start + response.num_available_hints +
string_mid + ((response.num_available_hints == 1) ? '' : 's') + string_end);
$("#no_hint_message").hide();
},
error: function (html) {
console.log(html);
Expand Down Expand Up @@ -86,14 +85,14 @@ jQuery(document).ready(function($) {
last_date = response.last_date;
$("#num_available_hints").html(string_start + response.num_available_hints +
string_mid + ((response.num_available_hints == 1) ? '' : 's') + string_end);
$("#no_hint_message").hide();
}
});
$('#id_request').val('');
});

// receive a message though the websocket from the server
function receiveMessage(submission) {
$("#no_hint_message").hide();
submission = $(submission);
pk = submission.data('id');
if ($('tr[data-id=' + pk + ']').length == 0) {
Expand Down

0 comments on commit 45fb825

Please sign in to comment.