js error

GK User
Sun Jul 10, 2016 10:07 am
I'm using a different component for my gallery. In the gallery page I do get a js error (apparently some conflict with the gallery's js).

Code: Select all
TypeError: window.getSize(...) is undefined
   

if(window.getSize().x > 600) {


I doesn't really affect the gallery, or anything else I can see, but I would like to fix it.
Any ideas?
User avatar
Fresh Boarder

teitbite
Wed Jul 13, 2016 10:16 am
Hi

I guess "window" value has not been populated. Try maybe add:

Code: Select all
var window = $(window);


somewhere before this code.
User avatar
Moderator

GK User
Thu Jul 14, 2016 11:50 am
Tried it but it doesn't work. It must be some conflict with the gallery's scripts


teitbite wrote:Hi

I guess "window" value has not been populated. Try maybe add:

Code: Select all
var window = $(window);


somewhere before this code.
User avatar
Fresh Boarder

teitbite
Tue Jul 19, 2016 5:32 pm
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator


cron