vojtech-dobes / history.nette.ajax.js

Adds History API support to nette.ajax.js addon!
30 stars 27 forks source link

Add 'off' option to disable plugin by default #22

Closed lm closed 11 months ago

fprochazka commented 9 years ago

Nicely done!

fprochazka commented 9 years ago

The motivation: we wanna use history plugin, but we don't want it on all links, but we don't also wanna find every single link on the website, so we can disable the history. Much better is to simply turn on the history on links that should be "smarter" :)

fprochazka commented 9 years ago

Now that I think about it, it might be slightly better to implement this behaviour on the nette.ajax.js level, not here. What do you guys think?

Majkl578 commented 9 years ago

Well there is data-ajax-off for disabling specific extensions already. :+1: for data-ajax-on. (The naming of both is a bit misleading though, data-ajax-with[out] would be a bit better.)

fprochazka commented 9 years ago

@vojtech-dobes ping :)