sharshenov/sweetalert-rails — pull request #2 by Nxbtch (2014-12-03 12:47:47+00:00)
Title: fix issue with turbolinks

fix sweetalert not work with turbolinks, check my comment https://github.com/sharshenov/sweetalert-rails/issues/1. but this solution come with a pitfall. sweetalert don't require jquery to work. but the turbolinks event need jquery to work. so after this pr, you need info this gem users to load sweetalert after jquery and jquery-ujs. case need the page:change event trigger to initialize sweetalert.