Hi,
When the page refresh, I have to click 2 times in the link to open overlay.
First click do nothing. Second click, and the follow clicks, are ok.
It occurs only refresh page.
My code:
Has anything wrong in this code?
Can anyone help me?
Thanks,
Gustavo
When the page refresh, I have to click 2 times in the link to open overlay.
First click do nothing. Second click, and the follow clicks, are ok.
It occurs only refresh page.
My code:
$("a.overlay").live("click", function(e) {
e.preventDefault();
var triggers = $(this).overlay({
mask: {
color: '#494a4c',
loadSpeed: 100,
opacity: 0.2
},
top:'center',
speed:'fast',
closeOnClick: false
});
var buttons = $("#yesno input[type=button]").click(function(e) {
var yes = buttons.index(this) === 0;
if (yes) {
alert(yes)
}
});
});
Has anything wrong in this code?
Can anyone help me?
Thanks,
Gustavo
