feat: fire action:flag.showModal on flag modal appearance

v1.18.x
Julian Lam 5 years ago
parent 00d39fb32c
commit 3379d65f36

@ -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);
});

Loading…
Cancel
Save