Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about "Restaurant" Joomla template

Topic-icon diferent height of modules USER5, USER6 and USER7

More
6 years 1 month ago #3952 by aontanon
Hello

I have a problem with modules USER5, USER6 and USER7. In some sections of my website the height of this modules is not the same. I've been investigating and I get a javascript error on the web when I go to this pages.

The error is:
$ is not a function
for (var i=0;i<this.num;i++) if (!$(arguments)) return;

is in the js: equal_heights.js

To reproduce this error go to www.braseriaripollet.com and click on the option menu "Nuestros menus" of the Main Menu.

I hope yo can help me

Thank you very much

Please Log in to join the conversation.

More
6 years 1 month ago #3953 by ivan.milic
Hi,

This happens due concurrent object loading - sometimes is good, sometimes is not. I made you new .js file:

Replace:
/templates/hot_restaurant/js/equal_heights.js

with one in attachment, it should do the trick.

Ivan
Attachments:

Please Log in to join the conversation.

More
6 years 1 month ago #3958 by aontanon
Sorry, but the solution is not working

I've found some errors in the code you send me:

for(var i = 0; i < PArguments.length ; i++) --> you didn't put .length

I think you need to call the functions:

this.boxes = arguments;
this.maxheight();

Thank you for your help
Antonio

Please Log in to join the conversation.

More
6 years 1 month ago #3965 by ivan.milic
You have a point :) , totally forgot it. Also I miss-typed jQuery keyword letter case, and forgot '#' + id in jQuery selector.
If you still need this the correct one is in attachment.
Attachments:

Please Log in to join the conversation.

Time to create page: 0.116 seconds

Links, Partners and Social Media