Fix popper bug

This commit is contained in:
cuom1999 2022-11-27 15:51:57 -06:00
parent 9c6cd01ec2
commit 6b476ce2f7
2 changed files with 2 additions and 4 deletions

View file

@ -354,8 +354,6 @@ function onWindowReady() {
$("input[type='submit']").prop('disabled', true);
});
registerPopper($('#nav-lang-icon'), $('#lang-dropdown'));
registerPopper($('#user-links'), $('#userlink_dropdown'));
$('.lang-dropdown-item').click(function() {
$('select[name="language"]').val($(this).attr('value'));
$('#form-lang').submit();
@ -365,6 +363,8 @@ function onWindowReady() {
$(function() {
onWindowReady();
registerPopper($('#nav-lang-icon'), $('#lang-dropdown'));
registerPopper($('#user-links'), $('#userlink_dropdown'));
var $nav_list = $('#nav-list');
$('#navicon').click(function (event) {
event.stopPropagation();

View file

@ -132,8 +132,6 @@
$("input[type='submit']").prop('disabled', true);
});
registerPopper($('#nav-lang-icon'), $('#lang-dropdown'));
registerPopper($('#user-links'), $('#userlink_dropdown'));
$('.lang-dropdown-item').click(function() {
$('select[name="language"]').val($(this).attr('value'));
$('#form-lang').submit();