• gervik88

    (@gervik88)


    Hello everyone,

    I’m pretty new to web development, so hopefully you can give me a hint.
    I’m using the modal function from the materializecss framework on every post. That is working great until the first infinite scroll is called. After that the dialogs won’t open. If I change to pagination or “load more” all dialogs are working. So, I think I need to callback the modal function…but I don’t know how. The modal function needs to be initialized through

    $(document).ready(function(){
        // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
        $('.modal').modal();
      });

    The link to the modal function:
    https://github.com/Dogfalo/materialize/blob/master/js/modal.js

    Best regards,
    Vik

The topic ‘Callback for materializecss dialog’ is closed to new replies.