mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
if alert is closed dont fire clickfn
This commit is contained in:
@@ -218,9 +218,10 @@ var socket,
|
|||||||
$('#' + params.location).prepend(alert.fadeIn('100'));
|
$('#' + params.location).prepend(alert.fadeIn('100'));
|
||||||
|
|
||||||
if(typeof params.closefn === 'function') {
|
if(typeof params.closefn === 'function') {
|
||||||
alert.find('button').on('click', function () {
|
alert.find('button').on('click', function() {
|
||||||
params.closefn();
|
params.closefn();
|
||||||
fadeOut();
|
fadeOut();
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user