hello
in image.php of the defaukt theme, there is a javascript function writing in the header :
[code]
<script type="text/javascript">
$(document).ready(function(){
$(".colorbox").colorbox({inline:true, href:"#imagemetadata"});
});
function toggleComments() {
var commentDiv = document.getElementById("comments");
if (commentDiv.style.display == "block") {
commentDiv.style.display = "none";
} else {
commentDiv.style.display = "block";
}
}
</script>
[/code]
what this function is suposed to do ?
on my site there is no effect on the comment section
Comments
The second, toggleComments() was probably intended to show and hide the comments of the image. However, it seems never referenced, so it is probably redundant.
Can you explain how?