diff --git a/scripts/overview.php b/scripts/overview.php index 49c0ccb..388476a 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -86,7 +86,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse
- +
@@ -198,9 +198,9 @@ body::-webkit-scrollbar { document.getElementById('attribution-dialog').close(); } - function setModalText(iter, title, text, authorlink) { + function setModalText(iter, title, text, authorlink, photolink) { document.getElementById('modalHeading').innerHTML = "Photo: \""+title+"\" Attribution"; - document.getElementById('modalText').innerHTML = "Image link: "+text+"
Author link: "+authorlink+""; + document.getElementById('modalText').innerHTML = "

Image link: "+text+"
Author link: "+authorlink+"
"; showDialog(); } diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php index caa3a62..7903f0c 100644 --- a/scripts/todays_detections.php +++ b/scripts/todays_detections.php @@ -116,7 +116,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {
- +
@@ -179,9 +179,9 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) { document.getElementById('attribution-dialog').close(); } - function setModalText(iter, title, text, authorlink) { - document.getElementById('modalHeading').innerHTML = "Photo "+iter+": \""+title+"\" Attribution"; - document.getElementById('modalText').innerHTML = "Image link: "+text+"
Author link: "+authorlink+""; + function setModalText(iter, title, text, authorlink, photolink) { + document.getElementById('modalHeading').innerHTML = "Photo: \""+title+"\" Attribution"; + document.getElementById('modalText').innerHTML = "

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