diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 70ffb28a..4a0d3557 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -532,6 +532,9 @@ $(function () { $(".searchbutton").removeClass('running'); $(".searchbutton").prop('disabled', false); $("#btn-save").show(); + $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function () { + showQsoActionsMenu($(this).closest('.dropdown')); + }); }); } else { BootstrapDialog.show({ @@ -829,37 +832,6 @@ function showActivatorsMap(call, count, grids) { $(function () { $('[data-bs-toggle="tooltip"]').tooltip() }); - - $(function () { - // hold onto the drop down menu - var dropdownMenu; - - // and when you show it, move it to the body - $(window).on('show.bs.dropdown', function (e) { - - // grab the menu - dropdownMenu = $(e.target).find('.dropdown-menu'); - - // detach it and append it to the body - $('body').append(dropdownMenu.detach()); - - // grab the new offset position - var eOffset = $(e.target).offset(); - - // make sure to place it where it would normally go (this could be improved) - dropdownMenu.css({ - 'display': 'block', - 'top': eOffset.top + $(e.target).outerHeight(), - 'left': eOffset.left - }); - }); - - // and when you hide it, reattach the drop down, and hide it normally - $(window).on('hide.bs.dropdown', function (e) { - $(e.target).append(dropdownMenu.detach()); - dropdownMenu.hide(); - }); - }); uri->segment(1) == "search") { ?> @@ -1654,6 +1626,9 @@ $(document).ready(function(){ $('#exampleModal').modal('show'); $('[data-bs-toggle="tooltip"]').tooltip({ boundary: 'window' }); } + $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function () { + showQsoActionsMenu($(this).closest('.dropdown')); + }); } }); } @@ -1788,6 +1763,9 @@ $(document).ready(function(){ $('#exampleModal').modal('show'); $('[data-bs-toggle="tooltip"]').tooltip({ boundary: 'window' }); } + $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function () { + showQsoActionsMenu($(this).closest('.dropdown')); + }); } }); @@ -2197,6 +2175,9 @@ $(document).ready(function(){ message: html, onshown: function(dialog) { $('[data-bs-toggle="tooltip"]').tooltip(); + $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function () { + showQsoActionsMenu($(this).closest('.dropdown')); + }); }, buttons: [{ label: lang_admin_close, @@ -2503,6 +2484,9 @@ function viewEqsl(picture, callsign) { 'csv' ] }); + $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function () { + showQsoActionsMenu($(this).closest('.dropdown')); + }); }, buttons: [{ label: lang_admin_close, @@ -2525,7 +2509,7 @@ function viewEqsl(picture, callsign) { 'Mode': mode, 'Type': type, 'QSL' : qsl - }, + }, success: function (html) { var dialog = new BootstrapDialog({ title: lang_general_word_qso_data, @@ -2548,6 +2532,9 @@ function viewEqsl(picture, callsign) { 'csv' ] }); + $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function () { + showQsoActionsMenu($(this).closest('.dropdown')); + }); }, buttons: [{ label: lang_admin_close, diff --git a/assets/js/sections/distances.js b/assets/js/sections/distances.js index 5ae46b30..32c218c9 100644 --- a/assets/js/sections/distances.js +++ b/assets/js/sections/distances.js @@ -164,6 +164,9 @@ function getDistanceQsos(distance) { 'csv' ] }); + $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function () { + showQsoActionsMenu($(this).closest('.dropdown')); + }); }, buttons: [{ label: lang_admin_close, diff --git a/assets/js/sections/gridmap.js b/assets/js/sections/gridmap.js index 7a861d16..b9ea60ec 100644 --- a/assets/js/sections/gridmap.js +++ b/assets/js/sections/gridmap.js @@ -168,6 +168,9 @@ function spawnGridsquareModal(loc_4char) { if (isDarkModeTheme()) { $(".buttons-csv").css("color", "white"); } + $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function () { + showQsoActionsMenu($(this).closest('.dropdown')); + }); }, buttons: [{ label: lang_admin_close, diff --git a/assets/js/sections/gridmaster.js b/assets/js/sections/gridmaster.js index 239bf280..0d4a74b2 100644 --- a/assets/js/sections/gridmaster.js +++ b/assets/js/sections/gridmaster.js @@ -132,6 +132,9 @@ function spawnGridsquareModal(loc_4char) { if (isDarkModeTheme()) { $(".buttons-csv").css("color", "white"); } + $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function () { + showQsoActionsMenu($(this).closest('.dropdown')); + }); }, buttons: [{ label: lang_admin_close,