Browse Source

DIV-159 - Closing tooltips

pull/160/head
Mike Olund 8 years ago
parent
commit
3ba3508e35
7 changed files with 19 additions and 8 deletions
  1. +11
    -0
      edivorce/apps/core/static/js/main.js
  2. +3
    -3
      edivorce/apps/core/templates/prequalification/step_01.html
  3. +1
    -1
      edivorce/apps/core/templates/prequalification/step_02.html
  4. +1
    -1
      edivorce/apps/core/templates/prequalification/step_03.html
  5. +1
    -1
      edivorce/apps/core/templates/prequalification/step_04.html
  6. +1
    -1
      edivorce/apps/core/templates/prequalification/step_05.html
  7. +1
    -1
      edivorce/apps/core/templates/prequalification/step_06.html

+ 11
- 0
edivorce/apps/core/static/js/main.js View File

@ -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);


+ 3
- 3
edivorce/apps/core/templates/prequalification/step_01.html View File

@ -5,7 +5,7 @@
{% block content %}
<h1>Do you qualify for a divorce in BC?</h1>
<h1>Do you qualify for a divorce in B.C.?</h1>
<p>Let's start off with a few questions about your situation to make sure that this online divorce tool can
work for you.</p>
@ -13,7 +13,7 @@
<div class="question-well">
<h3>Are you</h3>
<div class="radio"><label>
{% input_field type="radio" name="married_marriage_like" value="Legally married" %}
{% input_field type="radio" name="married_marriage_like" value="Legally married" class="keep-tooltip-open" %}
Legally married<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right"
data-html="true"
title="<b>LEGALLY MARRIED</b><br /><br />Legally married is defined as: when two people agree
@ -24,7 +24,7 @@
</div>
<div class="radio"><label>
{% input_field type="radio" name="married_marriage_like" value="Living together in a marriage like relationship" %}
{% input_field type="radio" name="married_marriage_like" value="Living together in a marriage like relationship" class="keep-tooltip-open" %}
Living together in a marriage like<i class="fa fa-question-circle" data-toggle="tooltip"
data-placement="right" data-html="true"
title="<b>MARRIAGE LIKE RELATIONSHIP</b><br /><br />The term &quot;common-law relationship&quot;


+ 1
- 1
edivorce/apps/core/templates/prequalification/step_02.html View File

@ -5,7 +5,7 @@
{% block content %}
<h1>Do you qualify for a divorce in BC?</h1>
<h1>Do you qualify for a divorce in B.C.?</h1>
<div class="question-well">
<h3>Do you or your spouse live in British Columbia?</h3>


+ 1
- 1
edivorce/apps/core/templates/prequalification/step_03.html View File

@ -5,7 +5,7 @@
{% block content %}
<h1>Do you qualify for a divorce in BC?</h1>
<h1>Do you qualify for a divorce in B.C.?</h1>
<div class="question-well">
<h3>When did you and your spouse separate (legally this is referred to as living separate and apart)


+ 1
- 1
edivorce/apps/core/templates/prequalification/step_04.html View File

@ -5,7 +5,7 @@
{% block content %}
<h1>Do you qualify for a divorce in BC?</h1>
<h1>Do you qualify for a divorce in B.C.?</h1>
<div class="question-well">
<h3>Do you and your spouse have any children (includes step children, adopted children). The legal term is children of the marriage


+ 1
- 1
edivorce/apps/core/templates/prequalification/step_05.html View File

@ -5,7 +5,7 @@
{% block content %}
<h1>Do you qualify for a divorce in BC?</h1>
<h1>Do you qualify for a divorce in B.C.?</h1>
<div class="question-well">
<h3>Will you be able to provide proof of your marriage (in the form of an original or certified marriage certificate
<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" data-html="true"


+ 1
- 1
edivorce/apps/core/templates/prequalification/step_06.html View File

@ -5,7 +5,7 @@
{% block content %}
<h1>Do you qualify for a divorce in BC?</h1>
<h1>Do you qualify for a divorce in B.C.?</h1>
<h3>What is your reason (grounds) for asking for a divorce?</h3>
<p>
<em>The only way you will be granted a divorce in Canada is if you can prove to the courts that your marriage


Loading…
Cancel
Save