mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-16 01:35:41 +00:00
14 lines
398 B
JavaScript
14 lines
398 B
JavaScript
nopaque.forms.CreateContributionForm = class CreateContributionForm extends nopaque.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');
|
|
}
|
|
});
|
|
}
|
|
};
|