mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-10-02 15:31:11 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
commit
2eb3d2f03e
23 files changed
+199
-503
No files matched your search
@@ -113,18 +113,11 @@ nopaque.Forms.init = function() {
|
||||
}
|
||||
form.addEventListener("submit", function(event) {
|
||||
event.preventDefault();
|
||||
var formData, progressModalTitleElement;
|
||||
var formData;
|
||||
|
||||
formData = new FormData(form);
|
||||
// Initialize progress modal
|
||||
if (progressModalElement) {
|
||||
progressModalTitleElement = progressModalElement.querySelector(".title");
|
||||
for(let entry of formData.entries()) {
|
||||
if (entry[0].endsWith("title")) {
|
||||
progressModalTitleElement.innerText = entry[1];
|
||||
break;
|
||||
}
|
||||
}
|
||||
progressElement.style.width = "0%";
|
||||
progressModal.open();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user