about summary refs log tree commit diff
path: root/app/javascript/packs
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-04-03 13:06:34 +0200
committerGitHub <noreply@github.com>2020-04-03 13:06:34 +0200
commitf65568f1d400be2e101bd8b533a1b53807f5c757 (patch)
treeaaf08fac72a54d240555cfc0fc900f4e491111d2 /app/javascript/packs
parent69558d2fe5284d2b6168706bd7cbd8b7fb2b0847 (diff)
Add ability to filter audit log in admin UI (#13381)
Diffstat (limited to 'app/javascript/packs')
-rw-r--r--app/javascript/packs/admin.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/javascript/packs/admin.js b/app/javascript/packs/admin.js
index 061287f89..51f92de8a 100644
--- a/app/javascript/packs/admin.js
+++ b/app/javascript/packs/admin.js
@@ -30,6 +30,10 @@ delegate(document, '.media-spoiler-hide-button', 'click', () => {
   });
 });
 
+delegate(document, '.filter-subset--with-select select', 'change', ({ target }) => {
+  target.form.submit();
+});
+
 const onDomainBlockSeverityChange = (target) => {
   const rejectMediaDiv   = document.querySelector('.input.with_label.domain_block_reject_media');
   const rejectReportsDiv = document.querySelector('.input.with_label.domain_block_reject_reports');