From 97f997f64dc118131c1708fc9fce17126d48f3d8 Mon Sep 17 00:00:00 2001 From: Benard Ebinu Date: Wed, 14 Feb 2018 10:48:58 -0800 Subject: [PATCH] DIV-681: bug fix for child row edit controls --- edivorce/apps/core/static/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edivorce/apps/core/static/js/main.js b/edivorce/apps/core/static/js/main.js index 7c0c0c5d..3051979e 100755 --- a/edivorce/apps/core/static/js/main.js +++ b/edivorce/apps/core/static/js/main.js @@ -658,7 +658,7 @@ var initializeChildRowControls = function(element) { // Mimic what would happen if the parent row would be clicked. // this should initiate a transition to another screen where the // child details will be shown. - $(this).parent('tr').click(); + $(this).closest('tr').find('.child-item-cell').first().click(); }).hover(function() { $(this).tooltip({ placement:'auto right', @@ -681,7 +681,7 @@ var initializeChildRowControls = function(element) { .on('click', function() { if ($(this).hasClass('fact-sheet-button')) return; - populateChildInputFields($(this)); + populateChildInputFields($(this).parent('tr')); }) .hover(function() { $(this).parent('tr').find('.fact-sheet-button').show();