From a91bc3388fae0c681638c6eea923033de1ab65d8 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Tue, 19 Feb 2019 23:38:04 +0100 Subject: [PATCH] add comment to remind about unique identifiers --- templates/widgets/modal/modal.julius | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/widgets/modal/modal.julius b/templates/widgets/modal/modal.julius index 0d607cc89..14a53bde7 100644 --- a/templates/widgets/modal/modal.julius +++ b/templates/widgets/modal/modal.julius @@ -1,4 +1,5 @@ document.addEventListener('DOMContentLoaded', function() { + // TODO: replace for loop with one precise query for this specific modal instance var modalElements = Array.from(document.querySelectorAll('.modal')); modalElements.forEach(function(modal) { window.utils.setup('modal', modal);