forked from CGM_Public/pretix_original
Fix CSRF token of admin mode button being removed if e.g. support menu is clicked (#4812)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*global $,u2f */
|
/*global $,u2f */
|
||||||
$(function () {
|
$(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();
|
$(this).parent().find("input").val("").trigger('forceRunQuery').focus();
|
||||||
});
|
});
|
||||||
$('.dropdown-menu .form-box input').click(function (e) {
|
$('.dropdown-menu .form-box input').click(function (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user