Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

check headroom.min.js on popups

More
8 years 10 months ago #10226 by Bruno Ortolani
Hi,
JS scripts don't work in modal pop-up windows, like the ones used by virtuemart in several occasions.
I think this is due to the headroom.min.js script loaded in Galiana template.
The reason may be the lack of header or menus in pop-up windows.

Is there a way to fix it?
Maybe you override somehow the script in pop-ups?

Many Thanks,
Bruno

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #10233 by Sang Manh
Replied by Sang Manh on topic headroom.min.js on popups
Hi,
Thanks for choosing our product.
Please send me your account and site via PM.
Many thanks.

Sang Manh

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #10270 by Bruno Ortolani
Hi Sang,
sorry i I didn't replay to you sooner.
My site is still under localhost and at the moment fixing the captcha problem is not top priority.

However if you want to consider the problem I think you can replicate it quite easily.
Any modal pop-up window under Jux Galiana template is unable to load the re-captcha box.
For example if you try to enable a 'register' pop-up you will notice that probably the captcha will not appear even if it is enabled in Joomla (but you will have a captcha field and you will not be able to register).

I will move the site I'm developing on-line quite soon and I'll send you the details for logging in.
For the moment thanks a lot and happy 2016.

Bruno

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago - 8 years 10 months ago #10300 by Sang Manh
Replied by Sang Manh on topic headroom.min.js on popups
Hi,
Thanks for your feedback.
Ok, please send me images about modal pop-up windows? I'll check it in my local.
Thanks.

Sang Manh
Last edit: 8 years 10 months ago by Sang Manh.

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago - 8 years 9 months ago #10953 by Bruno Ortolani
Solved.
The problem lies in the file ../templates/jux_galiana/js/script.js

The function that initilaizes the headroom object is called also if no header exists.
You should check wether the header exists before creating the Headroom object, otherwise you generate a js error that will prevent other scripts from running.

Change the code at line 123 of script.js in this way:
if(document.querySelector("#t3-header")) {
	new Headroom(document.querySelector("#t3-header"), {
		tolerance: 10,
		offset : 205,
		classes: {
			initial: "animated",
			pinned: "fadeInDown",
			unpinned: "fadeOutUp"
			}
		}).init();
	}

Hope this helps,
Bruno
Last edit: 8 years 9 months ago by Bruno Ortolani.

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #10965 by Sang Manh
Replied by Sang Manh on topic headroom.min.js on popups
Hi Bruno Ortolani,
Ok.
Thanks.

Sang Manh

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.051 seconds
Powered by Kunena Forum