add cursor: pointer if alert's clickfn is defined

v1.18.x
psychobunny 11 years ago
parent 3c7b433e3a
commit 240932dd80

@ -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);
});
}
});
});

Loading…
Cancel
Save