Member
Member
vincent3569   2010-03-13, 23:00
#1

hello

in image.php of the defaukt theme, there is a javascript function writing in the header :

[code]

    $(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";
        }
    }

[/code]

what this function is suposed to do ?
on my site there is no effect on the comment section

Member
Member
sbillard   2010-03-14, 00:42
#2

There are two functions there. The first (colorbox) is for the showing of the "colorbox" window with image metadata.

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.

Member
Member
vincent3569   2010-03-15, 00:11
#3

precisely, I would like to use this feature on my page image.php to show or hide comments.

Can you explain how?

Member
Member
sbillard   2010-03-15, 00:47
#4

The simplest way would be to upgrade to tonight's build were there is a show/hide button option for the plugin. The code that was left over was (presumably) from a time in the past before the comment form plugin.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.