Skip to content

Ajaxify all links except those to pdf and docx files #308

Answered by jiripudil
zddors asked this question in Support
Discussion options

You must be logged in to vote

Hello, there is currently no imperative API to achieve this, but I think you should be able to use the selector configuration to exclude these links:

naja.uiHandler.selector = '.ajax:not([href$=".pdf"]):not([href$=".docx"])';

To take effect, this must be set before calling naja.initialize().

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zddors
Comment options

Answer selected by zddors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants