Page 1 of 1

Javascript ERROR

Posted: Mon Sep 26, 2011 9:52 pm
by buddyq
Getting this error everytime I call AG....

Syntax Error:
if(AG_jQuery(this).attr('id') == ){

Obviously it's not comparing it to anything after the ==.

here is a snippet of where it points to:

AG_jQuery(".ag_hidden_ID").each(function(index) {
136
137 var paginInitPages=eval("paginInitPages_"+AG_jQuery(this).attr('id'));
138 var albumInitFolders=eval("albumInitFolders_"+AG_jQuery(this).attr('id'));
139
140 if(AG_jQuery(this).attr('id') == ){
141 var paginInitPages_array = paginInitPages.split(",");

How do I fix this?

Re: Javascript ERROR

Posted: Mon Sep 26, 2011 11:33 pm
by Vasiljevski
Well the missing value is $AG->articleID. Did you try to use gallery in a module?

If you use gallery in a module then there is no article ID so that creates this problem.

Solution to this could be to change admirorgallery.php on line 106. Instead of :$AG->articleID use some module specific ID.