I made a little modification to joomlas blog.php and blog_item.php, loading Admiror Galleries for each article in the blog.
I did this via
Code: Select all
echo JHTML::_('content.prepare', '{AG}'.$gallery_str.'{/AG}');On any other page the gallery works fine and it does also work on the blog page, but there are errors in the js saying:
Code: Select all
Uncaught SyntaxError: Unexpected token )this refers to lines like this in the js-code the gallery adds:
Code: Select all
if(AG_jQuery(this).attr('id') == ){Code: Select all
<div id="AG_0" class="ag_reseter AG_classic">Is there anyway to fix this?
Do i load the gallery wrong with
Code: Select all
echo JHTML::_('content.prepare' ... Like I said the gallery is working fine, but I would like to get rid of those errors.