javascript - Toggle divs and Mootools - same script and style but different effect -


i'm stuck easy thing, spent 2 days without finding solution. generaly have mootools script writen theme, works fine divs. here link problem.

when logged in (user:demo, pass:demo) see, under message, buttons: who said thank you, attachments , long button com_kunena_button_quick_reply_reply (the name not important, missed lang strings).

so when click on who said thank you or attachments buttons, hidden div appear (or close). same should happen long button , show quick reply form below message (which displayed). , here thing don't know how fix. buttons wrapped in div class trigger script. unfortunately 1 working incorrectly.

i checked fiddle (only part of script included divs used on website) , can't reproduce problem works perfectly)

please help

you can use this:

document.getelements('a[data-target^="#quick-reply"]').addevent('click', function(ev){      ev.preventdefault();      this.reveal();  }); 

and remove onclick="return false; .style.display = 'block' inside html.