Modal close button hashtag

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Jan 19, 2014 3:37 pm
Reply with quote
Report this post
hi.
i'm using the NSP GK5 with video gallery settings.
The videos open correctly in a modal pop up.
The problem is the close button have a href "#" and this take me to the header every time the video is closed.
Any suggestion about how resolve this?
http://duobarozzirubino.com.ar/index.php#gkTop2

Thank you
User avatar
Senior Boarder

GK User
Tue Jan 21, 2014 7:41 pm
Reply with quote
Report this post
Hello,

Please try to add the following script at the end of js/gk.scripts.js:

Code: Select all
window.addEvent('load', function() {
document.id('sbox-btn-close').addEvent('click', function(e) {
e.stop();
});
});
User avatar
Administrator

GK User
Tue Jan 21, 2014 8:47 pm
Reply with quote
Report this post
It works with "domready" (doesn't work for me with load)
So:

Code: Select all
window.addEvent('domready', function() {
   document.id('sbox-btn-close').addEvent('click', function(e) {
e.stop();
});
});


Thank you very much!
User avatar
Senior Boarder


cron