add check for css-class fc_success_box to dialog_confirm

This is needed if the return is not JSON but HTML. Eg when
confirm_link() is called in a module.