mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: fire action:flag.showModal on flag modal appearance
This commit is contained in:
@@ -49,6 +49,11 @@ define('flags', function () {
|
||||
});
|
||||
|
||||
flagModal.modal('show');
|
||||
$(window).trigger('action:flag.showModal', {
|
||||
modalEl: flagModal,
|
||||
type: data.type,
|
||||
id: data.id,
|
||||
});
|
||||
|
||||
flagModal.find('#flag-reason-custom').on('keyup blur change', checkFlagButtonEnable);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user