]> code.communitydata.science - coldcallbot-discord.git/blobdiff - static/process_button.js
Adding public vs. private interface
[coldcallbot-discord.git] / static / process_button.js
index 6bea8a241759e944750a1ca8fc816425cc20c58a..150f8d2cc894dec387d484aed9bf2a14c164bf29 100644 (file)
@@ -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);

Community Data Science Collective || Want to submit a patch?