mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-27 03:44:19 +00:00
14 lines
382 B
JavaScript
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');
|
|
}
|
|
});
|
|
}
|
|
};
|