clean install

This commit is contained in:
2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 changed files with 3555714 additions and 0 deletions

18
web/themes/gin/dist/js/edit_form.js vendored Normal file
View File

@@ -0,0 +1,18 @@
(Drupal => {
Drupal.behaviors.ginEditForm = {
attach: context => {
once("ginEditForm", ".region-content form.gin-node-edit-form", context).forEach((form => {
const sticky = context.querySelector(".gin-sticky"), newParent = context.querySelector(".region-sticky__items__inner");
if (newParent && 0 === newParent.querySelectorAll(".gin-sticky").length) {
newParent.appendChild(sticky);
const actionButtons = newParent.querySelectorAll("button, input, select, textarea"), formLabels = newParent.querySelectorAll("label");
actionButtons.length > 0 && (actionButtons.forEach((el => {
el.setAttribute("form", form.getAttribute("id")), el.setAttribute("id", el.getAttribute("id") + "--gin-edit-form");
})), formLabels.forEach((el => {
el.setAttribute("for", el.getAttribute("for") + "--gin-edit-form");
})));
}
}));
}
};
})(Drupal);