vojtech-dobes / nette.ajax.js

Flexible AJAX for Nette Framework. Supports snippets, redirects etc.
https://componette.org/vojtech-dobes/nette.ajax.js/
MIT License
149 stars 85 forks source link

Make data-ajax-off less pain to write :) #71

Closed Majkl578 closed 11 years ago

Majkl578 commented 11 years ago

Hi,

data-ajax-off is a cool feature, but it's kinda pain to write when you want to disable more than one extension. In that case, it has to be a valid JSON, otherwise it fails to parse and returns just string. So the definition looks like:

<a href="..." class="ajax" data-ajax-off='["snippets", "history", "ga"]'>...</a>

It'd be cool if it was possible to define it just like:

<a href="..." class="ajax" data-ajax-off="snippets, history, ga">...</a>
rostenkowski commented 11 years ago

Cool demand ;)

vojtech-dobes commented 11 years ago

Definitely, thanks for reminding me :). I will also add support for (space) delimiter, as it perfectly resembles standard HTML attribute.