Guest
10 Nov 2012 23:30

Unfortunately it is so. I ll pass information to developers. Thank you as usually for help! :)


pepperstreet VIP
Total posts: 3,837
11 Nov 2012 15:41

Maybe a dump question... but what does "toggle links" mean? Never tried it, because i don´t have a clue about a use case, or the actual frontend result.


pepperstreet VIP
Total posts: 3,837
11 Nov 2012 20:41

Still not sure, how it should react on a click... but currently it does nothing.

Here is a sourcecode excerpt from my sample checkbox and two articles.

<div id="flt-' . $this-&gt;key . '-list">

    <a href="javascript:void(0);" id="flt-1-0" onclick="setHiddenSelectableFltcheckbox(this.id, Value 1')">

        Value 1 (1)    </a>    

        &nbsp;

    <a href="javascript:void(0);" id="flt-1-1" onclick="setHiddenSelectableFltcheckbox(this.id, Value 2')">

        Value 2 (1)    </a>    

        &nbsp;

<script type="text/javascript">

function setHiddenSelectableFlt1(id, value)

{

    if($(id + "-hid"))

    {

        $(id + "-hid").destroy();

        $(id).set("html", $(id).get("text"));

    }

    else

    {

        var newhid = new Element("input", {type: "hidden", value: value, id: id+"-hid", name: "filters[k891066e731ab227fd424cf04a25095c4][]"});

        $("flt-k891066e731ab227fd424cf04a25095c4-list").grab(newhid, "bottom");

        $(id).set("html", "<b>"+$(id).get("text")+"</b>");

    }

}

</script>

</div>

frontend:

Powered by Cobalt