Closed ParallelUniv3rse closed 7 years ago
You can configure the plugin to do it:
$.nette.init((requestHandler) => {
if (!this.initialized) {
$('body').on('click.nette', 'a.ajax', requestHandler);
$('body').on('submit.nette', 'form.ajax', requestHandler);
this.initialized = true;
}
});
It would be very helpful to rewrite the plugin or at least have an option to bind handlers via $('body').on(), so any ajax forms, etc. inside snippets stay ajaxified.