jpillora / notifyjs

Notify.js - A simple, versatile notification library
https://notifyjs.jpillora.com/
MIT License
1.91k stars 741 forks source link

notifyjs not working with rails/turbolinks #27

Open dkonayuki opened 10 years ago

dkonayuki commented 10 years ago

Notification shows up in the first time but after clicking some links in the website, notification stop showing up. (js code works as normal). This issue might be related to compatibility with ruby on rails, more specifically with turbolinks gem. Please take a look. Maybe a reload function in api of notifyjs might be needed.

wongyouth commented 9 years ago

My PR #15 has a solution for this.

$(document).on 'page:update', ->
  $.notify.clearAnchors()