Skip to content

Commit

Permalink
Merge pull request #946 from girder/fix-itemlist-dialog-links
Browse files Browse the repository at this point in the history
Fix an issue with links inside of a item list in a dialog
  • Loading branch information
manthey authored Aug 25, 2022
2 parents 75d65da + 9167591 commit 4e872af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit 4e872af

Please sign in to comment.