HelpSpot Help Desk Software | HelpSpot Blog | HelpSpot Support

Run custom javascript on delete event in timetracker?


#1

I enabled the Time Tracking gadget in my Helpspot installation. When i go to delete an activity, after the deletion, I’d like to be able to fire a Javascript function called helpspot_modify_html(). Is there an event I can hook into? I looked around and it seems like there’s no way to either modify the existing Javascript that defines the delete event for Time Tracking gadget or to hook into a delete event.


#2

There’s no direct hook currently. However, if you implement a custom admin them you can include jQuery code via an included admin theme js file. So you could hook onto that button and then run your own code in that case.