Browse Source

Updated alert message for which_order page and remove all console.log

pull/160/head
Charles Shin 8 years ago
parent
commit
e20c7faac4
3 changed files with 14 additions and 16 deletions
  1. +0
    -7
      edivorce/apps/core/static/js/ajax.js
  2. +0
    -5
      edivorce/apps/core/static/js/functions.js
  3. +14
    -4
      edivorce/apps/core/templates/question/01_orders.html

+ 0
- 7
edivorce/apps/core/static/js/ajax.js View File

@ -55,7 +55,6 @@ var ajaxCall = function(question, value){
// add CSRF_TOKEN to POST
var csrf_token = getCSRFToken();
// TODO more useful callback functions for done and fail
$.ajax(url,
{
type: 'POST',
@ -65,12 +64,6 @@ var ajaxCall = function(question, value){
}
},
data: {question: question, value: value}
})
.done(function () {
console.log("Successful");
})
.fail(function (xhr) {
console.log(xhr);
});
};

+ 0
- 5
edivorce/apps/core/static/js/functions.js View File

@ -123,7 +123,6 @@ var getValue = function(el, question){
}
// for adding reconciliation_period fields, create list of [sFromDate, sToDate] and
// check if sFromDate is earlier than sToDate
// TODO clean up console.log
else if (question == "reconciliation_period"){
var sToDate, sFromDate, dToDate, dFromDate;
var hideAlert = true;
@ -158,10 +157,6 @@ var getValue = function(el, question){
.append('<span class="help-block">Negative Date Range</span>');
}
}
else {
console.log("Invalid: " + sFromDate + " : " + sToDate);
console.log("invalid date format");
}
});
return JSON.stringify(value);
}


+ 14
- 4
edivorce/apps/core/templates/question/01_orders.html View File

@ -73,10 +73,11 @@
</div>
</div>
<div class="information-message bg-danger" id="spouse_support_alert" hidden>
<p>If you and your spouse have already agreed on spousal support (which could be in the form of a
<span class="tooltip-link" data-toggle="tooltip" data-placement="right" data-html="true" title="<b>Separation agreement</b><br /><br />A document that sets out how you and your spouse have agreed to deal with matters like parenting support and property after you separate
(Provincial family law calls it an agreement). There's no official form to use for drafting up a separation agreement. ">separation agreement<i class="fa fa-question-circle" aria-hidden="true"></i></span> ) then you
do not need to ask for an Order for Spousal Support. However if you want the spousal support agreement to be enforceable (legally binding) you will need to select this option.
<p>
If you and your spouse have already agreed on spousal support (which could be in the form of a separation agreement) then you do not need to ask for an Order for Spousal Support. However, if you <b>do not have a separation agreement</b> that deals with spousal support, then you may want to select this option.
</p>
<p>
You can enforce either a separation agreement that has been filed at the registry, which then becomes an order, or you can ask for the order (spousal support) from the court. Either one will be enforceable (require the other party to do something/adhere to what has been agreed).
</p>
</div>
</div>
@ -86,6 +87,15 @@
<p>Anything you own including real estate, bank accounts, cars and RRSPs. For more information, please refer to the <a href="http://www.familylaw.lss.bc.ca/resources/fact_sheets/debtsAfterSeparation.php" target="_blank">Dealing with Debts
After Separation fact sheet</a> on the Family Law in B.C. website.</p>
<div class="information-message bg-danger" id="property_division_alert" hidden>
<p>
If you and your spouse have already agreed on division of property and debts (which could be in the form of a separation agreement) then you do not need to ask for an Order for Division of Property and Debts. However, if you <b>do not have a separation agreement</b> that deals with property and debts, then you may want to select this option.
</p>
<p>
You can enforce either a separation agreement that has been filed at the registry, which then becomes an order, or you can ask for the order (property and debts) from the court. Either one will be enforceable (require the other party to do something/adhere to what has been agreed).
</p>
</div>
</div>
<div class="question-well">


Loading…
Cancel
Save