From 916759167a874832e563915356d2260bf060e8c2 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Thu, 25 Aug 2022 14:38:01 -0400 Subject: [PATCH] Fix an issue with links inside of a item list in a dialog --- girder/girder_large_image/web_client/templates/itemList.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/girder/girder_large_image/web_client/templates/itemList.pug b/girder/girder_large_image/web_client/templates/itemList.pug index 44db20f17..ea6796316 100644 --- a/girder/girder_large_image/web_client/templates/itemList.pug +++ b/girder/girder_large_image/web_client/templates/itemList.pug @@ -18,7 +18,7 @@ ul.g-item-list.li-item-list for column in itemList.columns - var divtype = column.type !== 'record' || column.value !== 'controls' ? 'a' : 'span'; - var classes = []; + var classes = divtype == 'a' ? ['g-item-list-link']: []; if (('' + column.type + column.value).match(/^[a-zA-Z][a-zA-Z0-9-_]*$/)) classes.push(`li-column-${column.type}-${column.value}`); if (('' + column.type).match(/^[a-zA-Z][a-zA-Z0-9-_]*$/)) classes.push(`li-column-${column.type}`); #{divtype}.li-item-list-cell(class=classes.join(' '), g-item-cid=item.cid, href=`#item/${item.id}`)