Fixed event bug in Firefox/IE that prevented confirmation dialog from showing