Initialize confirm dialogs on page:update Turbolinks event
Initialize confirm dialogs on page:update Turbolinks event

It fixes sweet alert confirm dialogs when the button or link was added
to the DOM using partial replacements (Turbolinks 5).

Please note this event is fired when the page is loaded and also when
the a partial replacement is made. Therefore, using this event instead
of `page:load` covers more cases.

Users using Turbolinks 2.x should not be affected by the change, since
the `page:update` event is also triggered just before `page:load` in
this version.

mois3x/sweet-alert-rails-confirm,JoeWoodward/rails-sweetalert2-confirm,JoeWoodward/rails-sweetalert2-confirm,mois3x/sweet-alert-rails-confirm,JoeWoodward/rails-sweetalert2-confirm,mois3x/sweet-alert-rails-confirm