diff --git a/scripts/overview.php b/scripts/overview.php index f556698..3f97d96 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -222,7 +222,7 @@ body::-webkit-scrollbar { } function setModalText(iter, title, text, authorlink, photolink) { - document.getElementById('modalHeading').innerHTML = "Photo: \""+decodeURIComponent(title.replace("+"," "))+"\" Attribution"; + document.getElementById('modalHeading').innerHTML = "Photo: \""+decodeURIComponent(title.replaceAll("+"," "))+"\" Attribution"; document.getElementById('modalText').innerHTML = "

Image link: "+text+"
Author link: "+authorlink+"
"; showDialog(); } diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php index b9d6b30..fb96b5b 100644 --- a/scripts/todays_detections.php +++ b/scripts/todays_detections.php @@ -204,7 +204,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) { } function setModalText(iter, title, text, authorlink, photolink) { - document.getElementById('modalHeading').innerHTML = "Photo: \""+decodeURIComponent(title.replace("+"," "))+"\" Attribution"; + document.getElementById('modalHeading').innerHTML = "Photo: \""+decodeURIComponent(title.replaceAll("+"," "))+"\" Attribution"; document.getElementById('modalText').innerHTML = "

Image link: "+text+"
Author link: "+authorlink+"
"; showDialog(); }