added minor fixes in modal image
This commit is contained in:
parent
833d35ad50
commit
c9f8f1f0aa
|
@ -192,10 +192,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
var captionText = document.getElementById("captionText");
|
||||
var modal = document.getElementById("myModal");
|
||||
|
||||
|
||||
function trigger(var1, caption) {
|
||||
var modal = document.getElementById("myModal");
|
||||
var modalImg = document.getElementById("img01");
|
||||
|
||||
modal.style.display = "block";
|
||||
|
@ -203,13 +203,12 @@
|
|||
captionText.innerHTML = caption;
|
||||
}
|
||||
|
||||
var span = document.getElementsByClassName("close")[0];
|
||||
|
||||
|
||||
function closeModal() {
|
||||
var modal = document.getElementById("myModal");
|
||||
// Close the modal when clicking outside the image
|
||||
window.onclick = function(event) {
|
||||
if (event.target == modal) {
|
||||
modal.style.display = "none";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="modal fade" id="rejectModal" tabindex="-1" role="dialog" aria-labelledby="rejectModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
|
|
Loading…
Reference in New Issue