if alert is closed dont fire clickfn

v1.18.x
Baris Soner Usakli 11 years ago
parent eea677655f
commit 6bf36a0468

@ -218,9 +218,10 @@ var socket,
$('#' + params.location).prepend(alert.fadeIn('100'));
if(typeof params.closefn === 'function') {
alert.find('button').on('click', function () {
alert.find('button').on('click', function() {
params.closefn();
fadeOut();
return false;
});
}
});

Loading…
Cancel
Save