From 81740400f9bcf10a384f3f143a02b3bdeba0c2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 16 Oct 2020 23:09:11 +0200 Subject: s/inline-edit/input-list/ --- module/calp/html/vcomponent.scm | 2 +- static/script.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/calp/html/vcomponent.scm b/module/calp/html/vcomponent.scm index 7414654b..cf8f3a9d 100644 --- a/module/calp/html/vcomponent.scm +++ b/module/calp/html/vcomponent.scm @@ -203,7 +203,7 @@ ,@(with-label "Kategorier" - `(div (@ (class "inline-edit")) + `(div (@ (class "input-list")) ,@(awhen (prop ev 'CATEGORIES) (map (lambda (c) `(input (@ (size 2) diff --git a/static/script.js b/static/script.js index d7e60488..34ccdb2a 100644 --- a/static/script.js +++ b/static/script.js @@ -491,7 +491,7 @@ window.onload = function () { */ - for (let el of document.querySelectorAll(".inline-edit input")) { + for (let el of document.querySelectorAll(".input-list input")) { el.oninput = update_inline_list; } @@ -969,7 +969,7 @@ function advance_final(li) { size: 2, oninput: li.oninput, }); - li.closest(".inline-edit").appendChild(new_li); + li.closest(".input-list").appendChild(new_li); } function update_inline_list () { -- cgit v1.2.3