mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: add action:alert.new, action:alert.update hooks
This commit is contained in:
@@ -52,6 +52,8 @@ define('alerts', ['translator', 'components', 'benchpress'], function (translato
|
||||
fadeOut(alert);
|
||||
});
|
||||
}
|
||||
|
||||
$(window).trigger('action:alert.new', { alert: alert, params: params });
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -88,6 +90,8 @@ define('alerts', ['translator', 'components', 'benchpress'], function (translato
|
||||
fadeOut(alert);
|
||||
});
|
||||
}
|
||||
|
||||
$(window).trigger('action:alert.update', { alert: alert, params: params });
|
||||
}
|
||||
|
||||
function fadeOut(alert) {
|
||||
|
||||
Reference in New Issue
Block a user