Commit a4227291adfe670e93e66ce97af3133bff7f266e
Adding a UI response for successive submit in the template/users.html
| | | | 53 | data = $('#password').val(); | 53 | data = $('#password').val(); |
---|
54 | $.post({{ url_for('user')| tojson| safe }}, {'user':$("#user").val(), "key":data}, function(data){ | 54 | $.post({{ url_for('user')| tojson| safe }}, {'user':$("#user").val(), "key":data}, function(data){ |
---|
55 | /*TODO: In the UI flash a "check mark", to indicate success.*/ | 55 | /*TODO: In the UI flash a "check mark", to indicate success.*/ |
---|
| | 56 | $("button").addClass("btn-success"); |
---|
56 | console.log("Success"); | 57 | console.log("Success"); |
---|
57 | }); | 58 | }); |
---|
58 | | 59 | |
---|