How to Disable Confirmation Pop-Ups

When closing a task from the task subpanel, there’s a confirmation pop-up to confirm that you want to close it. It’s a waste of time for us. We hate that. How to get rid of it. I think you need to hack sugar_3.js in include/javascript but I can’t figure out how to disable it without disabling the close function from the subpanel. Wish there was a setting I could just turn off.