rails/pjax_rails — Issue #30: Overriding the default trigger
Author: squeedee
Created: 2012-02-24 07:58:09+00:00
State: open

Can I avoid having this run (without forking and using the forked version?)

$ -> $('a:not([data-remote]):not([data-behavior]):not([data-skip-pjax])').pjax('[data-pjax-container]')
eg: https://github.com/rails/pjax_rails/blob/master/lib/assets/javascripts/pjax/enable_pjax.js.coffee#L1

I'm a little green so the answer may be obvious, but in essence, I want to let pjax pick the container from the links data-pjax attribute, and not just use "data-pjax-container".

TIA,
Rasheed.