The change was applied to a common function of routines, triggers and events. I see nothing wrong with that because if "add routine" and "add trigger" windows use datepickers in future, this prevents having the same bug there. Alternative is adding a new javascript file called db_event.js and put the onclick event there. If you prefer it tell me. I'll do it in that way.