'Are you sure?' action

Hi jack, sorry for the delay…

I have the empty template at the end of the page, just to have an empy div to play with.

Then I have

  1. an snippet to run the confirm dialog *all the logics of the open, confirm, cancel, on close,…
  2. several snippets to change the text of the div
    so each time I need a confirm action:

The first snippet changes the .html() of the div, this will ve the content of the dialog.
The second snippet launches the dialog
and the next snippets will be executed if the response is resolve.