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

14 lines
382 B
JavaScript
Raw Normal View History

2023-10-05 14:08:04 +00:00
Forms.CreateContributionForm = class CreateContributionForm extends 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
};