Fix loading spinner
Instead of hardcoded the URL to the spinner gif file, using url_for function. In order to use url_for function, it has to be in template, not in js file.
id of the modal could be a better name as well as label.
Instead of hardcoded the URL to the spinner gif file, using url_for function. In order to use url_for function, it has to be in template, not in js file.
id of the modal could be a better name as well as label.