nopaque/app/static/js/forms/create-contribution-form.js

14 lines
398 B
JavaScript
Raw Permalink Normal View History

nopaque.forms.CreateContributionForm = class CreateContributionForm extends nopaque.forms.BaseForm {
static htmlClass = 'create-contribution-form';
2022-11-03 14:38:35 +00:00
constructor(formElement) {
super(formElement);
this.addEventListener('requestLoad', (event) => {
if (event.target.status === 201) {
window.location.href = event.target.getResponseHeader('Location');
}
});
}
2023-10-05 14:08:04 +00:00
};