diff --git a/web/src/utils.js b/web/src/utils.js index 8989ff5..4a48815 100644 --- a/web/src/utils.js +++ b/web/src/utils.js @@ -187,7 +187,7 @@ export function makeCollapsibleList( caption, vals, maxItems, style ) { const pos = flipButtonRef.src.lastIndexOf( "/" ) ; const show = flipButtonRef.src.substr( pos ) === "/collapsible-down.png" ; excessItemsRef.style.display = show ? "block" : "none" ; - flipButtonRef.src = flipButtonRef.src.substr( 0, pos ) + (show ? "/collapsible-up.png" : "/collapsible-down.png") ; + flipButtonRef.src = show ? "/images/collapsible-up.png" : "/images/collapsible-down.png" ; } if ( excessItems.length === 0 ) caption = {caption+":"} ; @@ -201,7 +201,7 @@ export function makeCollapsibleList( caption, vals, maxItems, style ) { return (
{caption} - { excessItems.length > 0 && flipButtonRef=r} alt="Show/hide extra items." /> } + { excessItems.length > 0 && flipButtonRef=r} alt="Show/hide extra items." /> }
{ excessItems.length > 0 &&