mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-21 06:52:59 +01:00
add cursor: pointer if alert's clickfn is defined
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user