From 3379d65f360d01c817b5806bcd6a6a4043838d2b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 10 Jul 2020 14:39:59 -0400 Subject: [PATCH] feat: fire action:flag.showModal on flag modal appearance --- public/src/modules/flags.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/src/modules/flags.js b/public/src/modules/flags.js index 8c02ee9b0a..9ddf27dd9a 100644 --- a/public/src/modules/flags.js +++ b/public/src/modules/flags.js @@ -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); });