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

14 lines
382 B
JavaScript

Forms.CreateContributionForm = class CreateContributionForm extends Forms.BaseForm {
static htmlClass = 'create-contribution-form';
constructor(formElement) {
super(formElement);
this.addEventListener('requestLoad', (event) => {
if (event.target.status === 201) {
window.location.href = event.target.getResponseHeader('Location');
}
});
}
};