From 6b476ce2f7c81511fe4351a850e9b65348ba2bf6 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sun, 27 Nov 2022 15:51:57 -0600 Subject: [PATCH] Fix popper bug --- resources/common.js | 4 ++-- templates/three-column-content.html | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/common.js b/resources/common.js index 25e656e..d23a9c4 100644 --- a/resources/common.js +++ b/resources/common.js @@ -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(); diff --git a/templates/three-column-content.html b/templates/three-column-content.html index 6964ad0..606c097 100644 --- a/templates/three-column-content.html +++ b/templates/three-column-content.html @@ -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();