Javascript ERROR

Admiror Gallery is free extension for Joomla! based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
buddyq
Maegashira
Maegashira
Posts: 21
Joined: Wed May 18, 2011 9:48 pm

Javascript ERROR

#1 Post 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?

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Javascript ERROR

#2 Post 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.
Help Admiror Gallery become even better,
give us a review on JED

Post Reply