Close window icon in the login/logout

December 2010 Joomla Templates
GK User
Mon Sep 16, 2013 3:52 pm
Hi
How do I add the close window icon in the Login/Logout popup lightbox window? If it's possible then what javascript function needs to call for close window icon? please help me as early as possible.
User avatar
Fresh Boarder

GK User
Mon Sep 16, 2013 5:31 pm
Hi,

In this case you will have to call the following code on click of your close button:

Code: Select all
document.id('gkLoginPopupOverlay').fireEvent('click');
User avatar
Administrator

GK User
Mon Sep 16, 2013 7:57 pm
dziudek wrote:Hi,

In this case you will have to call the following code on click of your close button:

Code: Select all
document.id('gkLoginPopupOverlay').fireEvent('click');


Then how do i disable the onclick event in the outer area(main window) of the login/logout lightbox window?
User avatar
Fresh Boarder

GK User
Mon Sep 16, 2013 9:22 pm
In this case you cannot disable it. If you really need to disable the overlay closing trigger, you have to connect your button with function for:

Code: Select all
document.id('gkLoginPopupOverlay').addEvent('click', ...


then your button will work and the overlay won't close the popup.
User avatar
Administrator

GK User
Mon Sep 16, 2013 11:18 pm
fetna wrote:
dziudek wrote:Hi,

In this case you will have to call the following code on click of your close button:

Code: Select all
document.id('gkLoginPopupOverlay').fireEvent('click');


Then how do i disable the onclick event in the outer area(main window) of the login/logout lightbox window?


Hi
I try to implement this code in templates/gk_penguinmail/layouts/blocks/popup.php file. But it's not working.
Can you help me to figure out the file name?
User avatar
Fresh Boarder

GK User
Tue Sep 17, 2013 8:14 am
This kind of codes are placed in the js/gk.scripts.js file.
User avatar
Administrator

GK User
Tue Sep 17, 2013 2:20 pm
dziudek wrote:This kind of codes are placed in the js/gk.scripts.js file.

Can you please send me the exact file and name code placement. So i can go and add this code. Thanks for all your help.
User avatar
Fresh Boarder

GK User
Tue Sep 17, 2013 9:07 pm
First of all - did you added some code for the closing button in the HTML? Because I need to know if we need to change the JS only or we need to add some HTML code in the website too.
User avatar
Administrator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.