Don't fire click when closing an alert

This commit is contained in:
medwards20x6
2014-03-04 10:30:44 -08:00
parent 3c97ef6829
commit 76b53478ce

View File

@@ -231,8 +231,10 @@ var socket,
}
if (typeof params.clickfn === 'function') {
alert.on('click', function () {
params.clickfn();
alert.on('click', function (e) {
if(!$(e.target).is('.close')) {
params.clickfn();
}
fadeOut();
});
}