Change drop down title panel controller

Hi all
I’d like to show an js alert when user choose ‘Edit’ item in title dashboard drop down menu.
I 've done an hot modify to js in build folder but nothing happen.
Can you point me on the right direction?
Regards
Giovanni