$(document).pjax('a:not(.no-pjax)', 'main');
$(document).on('ready pjax:complete', function() {
    $(document).activeNavigation("#nav-mobile");
});

$('.collapsible').collapsible({
    accordion : false
});

$(".button-collapse").sideNav();
$(".dropdown-button").dropdown();
$('.modal-trigger').leanModal();

@@ -138,16 +138,53 @@
 bile%22);%0A
+    $('.modal-trigger').leanModal();%0A
 %7D);%0A%0A$('
@@ -310,37 +310,5 @@
 ();%0A
-$('.modal-trigger').leanModal();
 %0A

Enable modals on frontend