mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-27 11:54:19 +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');
|
|
}
|
|
});
|
|
}
|
|
};
|