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
Post a Comment