From 65486c49748332375cc906bab3519adad8b7ac4d Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 31 Mar 2022 22:09:50 +0100 Subject: [PATCH] [QSO Input] Handles showing the gridsquare popover on focus --- assets/js/sections/qso.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index b6360d22..8f19929a 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -2,9 +2,13 @@ $( document ).ready(function() { $("#locator") .popover({ placement: 'top', title: 'Gridsquare Formatting', content: "Enter multiple (4-digit) grids separated with commas. For example: IO77,IO78" }) + .focus(function () { + $('#locator').popover('show'); + }) .blur(function () { - $(this).popover('hide'); - }); + $('#locator').popover('hide'); + }); + $("#sat_name").change(function(){ var sat = $("#sat_name").val(); if (sat == "") {