From bc6f48e1b681808fb6f6b9819b034773649d886d Mon Sep 17 00:00:00 2001 From: onli Date: Tue, 4 Jun 2013 15:53:00 +0200 Subject: [PATCH] instant reaction from media filter buttons --- templates/2k11/admin/serendipity_editor.js.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index 05352fc0..719fe601 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -752,4 +752,10 @@ function highlightComment(id, checkvalue) { }); } }); + + // MediaDB-Filter-Buttons should react instantly + $('input[name="serendipity[filter][fileCategory]"]').on('change', function() { + $('#media_library_control').submit(); + }); + })(jQuery);