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') { if (typeof params.clickfn === 'function') {
alert.on('click', function (e) { alert
if(!$(e.target).is('.close')) { .addClass('pointer')
params.clickfn(); .on('click', function (e) {
} if(!$(e.target).is('.close')) {
fadeOut(alert); params.clickfn();
}); }
fadeOut(alert);
});
} }
}); });
}); });

Loading…
Cancel
Save