aboutsummaryrefslogtreecommitdiff
path: root/html/item_list.js
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-01-13 10:15:12 +0100
committerWojtek Kosior <koszko@koszko.org>2022-01-13 10:15:12 +0100
commit5acb2499c1df14d6275b1ad9e139f02d1280cb9c (patch)
tree9407e99955a654cd04cbf96b8f28f5a6e7f36289 /html/item_list.js
parentdd8de100acda322f2124c58163ecde6f1b37d61d (diff)
downloadbrowser-extension-5acb2499c1df14d6275b1ad9e139f02d1280cb9c.tar.gz
browser-extension-5acb2499c1df14d6275b1ad9e139f02d1280cb9c.zip
facilitate managing repository URLs in a list; minor other changes
Diffstat (limited to 'html/item_list.js')
-rw-r--r--html/item_list.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/item_list.js b/html/item_list.js
index 34dec83..198e0f9 100644
--- a/html/item_list.js
+++ b/html/item_list.js
@@ -185,14 +185,14 @@ async function item_list(preview_cb, track_cb, remove_cb)
function on_dialog_show(list_ctx)
{
- list_ctx.ul; // TODO: make ul non-selectable when dialog is shown
+ list_ctx.ul.classList.add("list_disabled");
list_ctx.preview_container.classList.add("hide");
list_ctx.dialog_container.classList.remove("hide");
}
function on_dialog_hide(list_ctx)
{
- list_ctx.ul;
+ list_ctx.ul.classList.remove("list_disabled");
if (list_ctx.previewed_item !== null)
list_ctx.preview_container.classList.remove("hide");
list_ctx.dialog_container.classList.add("hide");