Browse Source

Fixed DIV-319

pull/160/head
Charles Shin 8 years ago
parent
commit
fa4f94f89d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      edivorce/apps/core/static/js/controllers.js

+ 4
- 0
edivorce/apps/core/static/js/controllers.js View File

@ -7,12 +7,16 @@ var reveal = function(el) {
var id = '#' + el.data("target_id");
var css_class = el.data("target_class");
var related_id = el.data("related_id");
console.log(id);
// hide or show based on target id
if (el.data("reveal_target") == true && el.prop('checked')) {
$(id).show();
if (related_id != undefined){
$('#' + related_id).hide();
}
if (id == "#has_children"){
reveal($("input[name=any_under_19]:checked"));
}
} else {
$(id).hide();
if (related_id != undefined){


Loading…
Cancel
Save