X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=js%2Fcrm.expandRow.js;h=f3aa86d300a33967c13f2dbd4436351a639579cd;hb=1a10d7ed9e639131ccd758c5130a06c26101037a;hp=de0f41051d0a7d6f1f88ab876bf41a16c39134d3;hpb=3154780cb18b187d51cb2a8ea0e6ce10d14110db;p=civicrm-core.git diff --git a/js/crm.expandRow.js b/js/crm.expandRow.js index de0f41051d..f3aa86d300 100644 --- a/js/crm.expandRow.js +++ b/js/crm.expandRow.js @@ -5,12 +5,13 @@ CRM.$(function($) { .on('click.crmExpandRow', 'a.crm-expand-row', function(e) { var $row = $(this).closest('tr'); if ($(this).hasClass('expanded')) { - $row.next('.crm-child-row').remove(); + $row.next('.crm-child-row').children('td').children('div.crm-ajax-container') + .slideUp('fast', function() {$(this).closest('.crm-child-row').remove();}); } else { var count = $('td', $row).length, - $newRow = $('') + $newRow = $('
') .insertAfter($row); - CRM.loadPage(this.href, {target: $('td', $newRow.animate({height: '3em'}, 'fast'))}); + CRM.loadPage(this.href, {target: $('div', $newRow).animate({minHeight: '3em'}, 'fast')}); } $(this).toggleClass('expanded'); e.preventDefault();