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'); } }); } };