Confirm dialog and Flash

Possibility to customize the confirm dialog using the jquery_ujs gem
Update the trigger flash_displayed to use the text and the type