Browse Source

Merge pull request #18 from bcgov/DIV-885

DIV-885: Updated edit and delete button for add children always visible.
pull/160/head
Charles Shin 7 years ago
committed by GitHub
parent
commit
07660cdcae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions
  1. +0
    -5
      edivorce/apps/core/static/js/main.js
  2. +1
    -1
      edivorce/apps/core/templates/partials/your_children_child.html

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

@ -695,11 +695,6 @@ var initializeChildRowControls = function(element) {
if ($(this).hasClass('fact-sheet-button')) if ($(this).hasClass('fact-sheet-button'))
return; return;
populateChildInputFields($(this).parent('tr')); populateChildInputFields($(this).parent('tr'));
})
.hover(function() {
$(this).parent('tr').find('.fact-sheet-button').show();
}, function() {
$(this).parent('tr').find('.fact-sheet-button').hide();
}); });
element.find('#delete_child_modal').on('show.bs.modal', function(event) { element.find('#delete_child_modal').on('show.bs.modal', function(event) {


+ 1
- 1
edivorce/apps/core/templates/partials/your_children_child.html View File

@ -29,7 +29,7 @@
data-save_select=".child-field" data-save_select=".child-field"
data-target-form-field="child_relationship_to_spouse">{{ relationship_to_spouse }}</div> data-target-form-field="child_relationship_to_spouse">{{ relationship_to_spouse }}</div>
</td> </td>
<td class="fact-sheet-button child-item-cell" hidden>
<td class="fact-sheet-button child-item-cell">
<a href="#" class="btn-edit-child"><i class="fa fa-pencil"></i></a> <a href="#" class="btn-edit-child"><i class="fa fa-pencil"></i></a>
<a href="#" class="btn-delete-child" id="delete_child_{{ div_id }}" data-toggle="modal" data-target="#delete_child_modal"><i class="fa fa-times"></i></a> <a href="#" class="btn-delete-child" id="delete_child_{{ div_id }}" data-toggle="modal" data-target="#delete_child_modal"><i class="fa fa-times"></i></a>
</td> </td>


Loading…
Cancel
Save