mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-10-15 19:21:57 +00:00
Better auto initialization method for forms and resource displays
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
Forms.CreateContributionForm = class CreateContributionForm extends Forms.BaseForm {
|
||||
static autoInit() {
|
||||
let createContributionFormElements = document.querySelectorAll('.create-contribution-form');
|
||||
for (let createContributionFormElement of createContributionFormElements) {
|
||||
new Forms.CreateContributionForm(createContributionFormElement);
|
||||
}
|
||||
}
|
||||
static htmlClass = 'create-contribution-form';
|
||||
|
||||
constructor(formElement) {
|
||||
super(formElement);
|
||||
|
Reference in New Issue
Block a user