It's actually used in the TalkEditorApp class. The function I added (confirm_add) just checks the value of fieldsEnabled to see whether or not all the fields are currently enabled. If they are not, it enables them by calling the clear_talk_details function, and doesn't bring up the confirmation prompt. 
I added it to avoid having to check whether each of the input fields were enabled individually.