Ross Mountjoy 00786d9eb6 - fixed lack of feedback on login screen
- fixed broken images on README.md
- updated README.md
- updated the PR template
- adding option for changing the tab name
- added tag headers for grid and list view
- added function that resizes template app images to 64x64 on startup
- fixed error that was blocking image types from being uploaded
2020-03-08 11:55:21 -04:00

17 lines
509 B
JavaScript

$( document ).ready(function() {
$(".login-form").on('submit', function(e) {
e.preventDefault();
$.ajax({
url: $(this).attr('data-url'),
type: 'POST',
data: $(this).serialize(),
success: function(data){
if (data.data.err){
M.toast({html: data.data.err, classes: 'theme-warning'})
} else {
$(location).attr('href', data.data.url)
}
}
});
});
});