diff --git a/src/main/resources/static/js/crosslisting.js b/src/main/resources/static/js/crosslisting.js index 4a3b680..0f806ff 100644 --- a/src/main/resources/static/js/crosslisting.js +++ b/src/main/resources/static/js/crosslisting.js @@ -75,6 +75,10 @@ $(document).ready(function(){ var submitButton = $('#continue-button'); submitButton.attr("disabled", true); submitButton.attr("aria-disabled", true); + + // move focus back to the reset button and announce reset + $(this).focus(); + $('#resetMsg').text('Changes reset.'); }); /* Continue Button, submits the form */ @@ -251,6 +255,8 @@ jQuery.fn.preventDoubleSubmission = function() { function checkboxEventRegistration() { $('.sectionsList :checkbox').on('click', function(event) { + // make sure the "reset" msg is cleared out since there is a new change + $('#resetMsg').text(''); var currentBox = $(this); var li = currentBox.parent().parent(); diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index bd5c3b4..e961622 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -131,7 +131,7 @@

View additional terms

- + +
+
+