add cursor: pointer if alert's clickfn is defined

This commit is contained in:
psychobunny
2014-05-12 13:02:48 -04:00
parent 3c7b433e3a
commit 240932dd80

View File

@@ -39,12 +39,14 @@ define(function() {
}
if (typeof params.clickfn === 'function') {
alert.on('click', function (e) {
if(!$(e.target).is('.close')) {
params.clickfn();
}
fadeOut(alert);
});
alert
.addClass('pointer')
.on('click', function (e) {
if(!$(e.target).is('.close')) {
params.clickfn();
}
fadeOut(alert);
});
}
});
});