From a53def094753bdec405a684c44c134b540c5f532 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 6 Feb 2025 12:07:10 +0100 Subject: [PATCH] Fix CSRF token of admin mode button being removed if e.g. support menu is clicked (#4812) --- src/pretix/static/pretixcontrol/js/ui/typeahead.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/static/pretixcontrol/js/ui/typeahead.js b/src/pretix/static/pretixcontrol/js/ui/typeahead.js index c11a14ad2..cdf2d176f 100644 --- a/src/pretix/static/pretixcontrol/js/ui/typeahead.js +++ b/src/pretix/static/pretixcontrol/js/ui/typeahead.js @@ -1,6 +1,6 @@ /*global $,u2f */ $(function () { - $('.sidebar .dropdown, ul.navbar-nav .dropdown, .navbar-events-collapse').on('shown.bs.collapse shown.bs.dropdown', function () { + $('.context-selector.dropdown').on('shown.bs.collapse shown.bs.dropdown', function () { $(this).parent().find("input").val("").trigger('forceRunQuery').focus(); }); $('.dropdown-menu .form-box input').click(function (e) {