X-Git-Url: https://code.communitydata.science/coldcallbot-discord.git/blobdiff_plain/e756c448c0c124b81ab74ac356d1d289af902cd1..f1f29cdbe2a9c5580edd871342259a886b47e8ae:/flask_app/static/process_button.js?ds=inline diff --git a/flask_app/static/process_button.js b/flask_app/static/process_button.js index 6bea8a2..150f8d2 100644 --- a/flask_app/static/process_button.js +++ b/flask_app/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);