From a663d9b3e832f3374dec077daac302e9eb0fecea Mon Sep 17 00:00:00 2001 From: Jim Shepich III <73664586+epicshepich@users.noreply.github.com> Date: Wed, 9 Feb 2022 05:03:16 -0500 Subject: [PATCH] Fixed targets --- scripts/lists.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/lists.js b/scripts/lists.js index f36c55b..60a7eb4 100644 --- a/scripts/lists.js +++ b/scripts/lists.js @@ -148,10 +148,10 @@ function gen_item_html(item,type="default",subtype=null){ tooltip=lists[item]["description"]; //When hovering over a list in the directory, display its description as a tooltip. } - var link = `href='index.php?page=lists&list=${item}' target='self_'`; + var link = `href='index.php?page=lists&list=${item}' target='_self'`; //By default, lists have internal links that change the query value to that list's title. Internal links should open in the same tab. if(lists[id].hasOwnProperty("type") && lists[item].type=="external"){ - link = `href='${lists[item]["link"]}' target='blank_'`; + link = `href='${lists[item]["link"]}' target='_blank'`; //For external lists, use their link instead of an internal link. External links should open in a new tab. } item_html = `
  • ${lists[item].title}
  • `; @@ -207,7 +207,7 @@ function gen_item_html(item,type="default",subtype=null){ //If the item is an object containing a single key-value pair, then use that pair as the k and v for displaying. } if(item.hasOwnProperty("link")){ - item_html = `${item["k"]}`; + item_html = `${item["k"]}`; } else { item_html = `${item["k"]}`; } @@ -301,7 +301,7 @@ function gen_item_html(item,type="default",subtype=null){ } //Gallery items must have an image. if(item.hasOwnProperty("link")){ - image = `${image}`; + image = `${image}`; //If there's a link associated with the exhibit, put it on the image. } item_html = (text=="") ? image : `${image}
    ${text}`;