fix function names and remove flashMsg code duplication

This commit is contained in:
2021-11-22 15:31:39 +02:00
parent ee1da0599c
commit b59eb22082
3 changed files with 30 additions and 53 deletions

View File

@ -1,6 +1,16 @@
/*
* behavioural layer for the `change_password.html.tera` template,
*/
behavioural layer for the `change_password.html.tera` template
- intercept button click for save (form submission of passwords)
- perform json api call
- update the dom
methods:
PEACH_AUTH.changePassword();
*/
var PEACH_AUTH = {};
@ -43,5 +53,5 @@ PEACH_AUTH.changePassword = function() {
});
}
var passInstance = PEACH_AUTH;
passInstance.changePassword();
var changePassInstance = PEACH_AUTH;
changePassInstance.changePassword();