Skip to content

JS code not executed on the first call of eModal.ajax #93

@edika99

Description

@edika99

I'm trying to open an html page with a linked js file using eModal.ajax method.

The page is loading and shown correctly but the js code inside the page is not executed.

I've notice that the Jquery(document).ready() is not called. And if I place a plain javascript inside the page is never executed.
To test i've tried with a simple

<script type="text/javascript"> setTimeout(function () { console.log('initCal'); }, 1000); </script>

but even this is never called.
If I close the modal and reopen it the js in the page is executed correctly.

Edika

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions