X-Git-Url: https://code.communitydata.science/coldcallbot-discord.git/blobdiff_plain/23b91425d855354d751918c045c052c6b1926577..aee2c90d1e0b7ac35acae6416ef7e08e2a6183d0:/static/process_button.js?ds=inline diff --git a/static/process_button.js b/static/process_button.js index 6bea8a2..150f8d2 100644 --- a/static/process_button.js +++ b/static/process_button.js @@ -1,5 +1,5 @@ $(document).ready(function() { - $('#goodButton, #badButton, #neutralButton, #absentButton').on('click', function() { + $('#goodButton, #badButton, #neutralButton, #absentButton, #nextButton').on('click', function() { var studentName = $('#studentName').text(); console.log(studentName); var buttonValue = $(this).val(); @@ -13,7 +13,7 @@ $(document).ready(function() { course: courseCode }, success: function(response) { - console.log(response); + $('#studentName').text(response); }, error: function(error) { console.log(error);