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.CreateJobForm = class CreateJobForm extends Forms.BaseForm {
|
||||
static autoInit() {
|
||||
let createJobFormElements = document.querySelectorAll('.create-job-form');
|
||||
for (let createJobFormElement of createJobFormElements) {
|
||||
new Forms.CreateJobForm(createJobFormElement);
|
||||
}
|
||||
}
|
||||
static htmlClass = 'create-job-form';
|
||||
|
||||
constructor(formElement) {
|
||||
super(formElement);
|
||||
|
Reference in New Issue
Block a user