diff --git a/edivorce/apps/core/static/js/main.js b/edivorce/apps/core/static/js/main.js index d00147a5..fb91f181 100755 --- a/edivorce/apps/core/static/js/main.js +++ b/edivorce/apps/core/static/js/main.js @@ -12,6 +12,17 @@ $('input:radio, input:checkbox').each(function () { $(function () { $('[data-toggle="tooltip"]').tooltip({trigger: 'click'}); + $('body').on('click', function (e) { + $('[data-toggle=tooltip]').each(function () { + // hide any open popovers when the anywhere else in the body is clicked + if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.tooltip').has(e.target).length === 0) { + if(!$(e.target).hasClass('keep-tooltip-open')) { + $(this).tooltip('hide'); + } + } + }); + }); + // when user click textbox beside radio button, check the associated radio button $(".other-textbox").on("click", function () { $(this).parents().find(".radio_with_textbox").prop('checked', true); diff --git a/edivorce/apps/core/templates/prequalification/step_01.html b/edivorce/apps/core/templates/prequalification/step_01.html index 6f6ea333..3b007815 100644 --- a/edivorce/apps/core/templates/prequalification/step_01.html +++ b/edivorce/apps/core/templates/prequalification/step_01.html @@ -5,7 +5,7 @@ {% block content %} -

Do you qualify for a divorce in BC?

+

Do you qualify for a divorce in B.C.?

Let's start off with a few questions about your situation to make sure that this online divorce tool can work for you.

@@ -13,7 +13,7 @@

Are you