JoomJunk / shoutbox

JJ Shoutbox module for Joomla! CMS. The most highly rated shoutbox on JED.
https://joomjunk.co.uk
6 stars 11 forks source link

Ensure modal is just before closing body tag #237

Closed C-Lodder closed 8 years ago

C-Lodder commented 8 years ago

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.