From 52139f3cb4e2860fa269d99629af99081a5fade4 Mon Sep 17 00:00:00 2001 From: Taka Date: Mon, 2 Mar 2020 15:32:38 +0000 Subject: [PATCH] Fixed some bad image URL's. --- web/src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 &&