All modals need to be appended just before the body tag. Now Joomla's render modal function does this, but considering we're supporting different frameworks and versions, we can't use that, so $().append() to the rescue.
The HTML for the modals is working perfectly apart from the history modal. The PHP snippet that renders the shouts seems to be causing some issues and results in the following console log error:
SyntaxError: unterminated string literal
In default.php on line 374 you'll see I've commented out a line, which I used for testing and works perfectly fine.
So maybe it's something to do with the HTML being outputted from the layout.
All modals need to be appended just before the body tag. Now Joomla's render modal function does this, but considering we're supporting different frameworks and versions, we can't use that, so
$().append()
to the rescue.The HTML for the modals is working perfectly apart from the history modal. The PHP snippet that renders the shouts seems to be causing some issues and results in the following console log error:
In
default.php
on line 374 you'll see I've commented out a line, which I used for testing and works perfectly fine.So maybe it's something to do with the HTML being outputted from the layout.