button light box

I wanted to add a button " time interval " in my light box in my schedul, so i wrote :

<?php scheduler.config.buttons_left=["dhx_save_btn","dhx_cancel_btn","timeinterval"]; scheduler.locale.labels["timeinterval"] = "Time Interval"; scheduler.attachEvent("onLightboxButton", function(button_id, node, e){ if(button_id == "timeinterval"){ onclick=showPopup(this); } }); And my pop up doesn t appear and i don t know why?

Hi,

Please, provide with a complete demo or share with a demo link, where the problem can be reproduced.