Commit f302747566dec7b55b8135bc3848f265b27e850a
1 parent
d3898cc1
Exists in
master
and in
29 other branches
pjax: support for non-pjax links
Makes it possible to disable pjax for specific links with data-skip-pjax set to true, similar to rails_pjax gem.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/pjax/public/javascripts/pjax.js
... | ... | @@ -15,7 +15,7 @@ pjax = { |
15 | 15 | var container = '.pjax-container'; |
16 | 16 | target.addClass('pjax-container'); |
17 | 17 | |
18 | - jQuery(document).pjax('a', container); | |
18 | + jQuery(document).pjax('a:not([data-skip-pjax])', container); | |
19 | 19 | |
20 | 20 | jQuery(document).on('pjax:beforeSend', function(event, xhr, settings) { |
21 | 21 | var themes = jQuery.map(pjax.themes, function(theme) { return theme.id }).join(','); | ... | ... |