diff --git a/app/static/js/update-user-info.js b/app/static/js/update-user-info.js new file mode 100644 index 0000000..84a5e57 --- /dev/null +++ b/app/static/js/update-user-info.js @@ -0,0 +1,9 @@ +(() => { + 'use strict' + const personalInformationForm = document.querySelector('#personal-information-form'); + const personalInformationSubmitBtn = personalInformationForm.querySelector('button'); + personalInformationSubmitBtn.disabled = true; + personalInformationForm.oninput = function (){ + personalInformationSubmitBtn.disabled = false; + } +})() \ No newline at end of file diff --git a/app/templates/users/index.html b/app/templates/users/index.html index 63523fd..5003009 100644 --- a/app/templates/users/index.html +++ b/app/templates/users/index.html @@ -24,7 +24,7 @@ super() }} {% endif %} {% endwith %}