ruby on rails 3 - getting alertify to work with turbolinks -


i trying use turbolinks in rails 3 app. fine, except alertify stops working after page change.

i have installed jquery-turbolinks gem patch up, has had no effect.

i have tried wrapping alertify function , triggering on page:change, again no joy.

anyone have issues turbolinks?

anyone encounters alertify 0.4.0 (currently rc1) can solve reseting alertify elements you're using. in case, alertify.dialog:

alertify.dialog.el = false // normal js stuff 

in crude understanding of this, alertify thinks dialog element has been created, when turbolinks loads page, destroys element. need tell alertify has been destroyed , alertify recreate it.

if need specifics, let me know.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -