}
.crm-container .crm-expand-row {
- width: 16px;
- height: 16px;
+ min-width: 16px;
+ min-height: 16px;
display: inline-block;
- background-image: url("../i/TreePlus.gif");
}
.crm-container .crm-accordion-inner .crm-accordion-header,
.crm-container .crm-accordion-wrapper .crm-master-accordion-header,
-.crm-container .crm-collapsible .collapsible-title,
-.crm-container .crm-expand-row.expanded {
+.crm-container .crm-collapsible .collapsible-title {
background-image: url("../i/TreeMinus.gif");
background-color: transparent;
color: #3E3E3E;
color: #0200A0;
}
+.crm-container .crm-child-row > td {
+ padding-left: 1.8em;
+}
+
/* civicrm admin menu */
#civicrm-menu .ui-autocomplete-input,
.crm-container .ui-autocomplete-input {
padding-left: 20px;
}
-#crm-container span.collapsed,
-#crm-container a.collapsed {
+.crm-container span.collapsed,
+.crm-container a.collapsed,
+.crm-container .crm-expand-row {
background: url("../i/TreePlus.gif") no-repeat 0 0;
padding-left: 19px;
cursor: pointer;
}
-#crm-container span.expanded,
-#crm-container a.expanded {
+.crm-container span.expanded,
+.crm-container a.expanded {
background: url("../i/TreeMinus.gif") no-repeat 0 0;
padding-left: 19px;
cursor: pointer;
.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 = $('<tr class="crm-child-row"><td colspan="' + count + '"></td></tr>')
+ $newRow = $('<tr class="crm-child-row"><td colspan="' + count + '"><div></div></td></tr>')
.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();