if alert is closed dont fire clickfn

This commit is contained in:
Baris Soner Usakli
2014-02-28 16:23:46 -05:00
parent eea677655f
commit 6bf36a0468

View File

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