Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 21e6705

Browse files
committed
not collapsible when no subdomain
1 parent b323c45 commit 21e6705

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/popup.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,11 +537,11 @@ function updateMatrixCells() {
537537
function updateMatrixBehavior() {
538538
var sections = $('.matSection', HTTPSBPopup.matrixList);
539539
var i = sections.length;
540-
var section, collapsible;
540+
var section, subdomainRows;
541541
while ( i-- ) {
542542
section = $(sections[i]);
543-
collapsible = !$('.l2 .gdt,.l2 .rdt', section).length;
544-
section.toggleClass('collapsible', collapsible);
543+
subdomainRows = section.children('.l2');
544+
section.toggleClass('collapsible', subdomainRows.length > 0 && subdomainRows.children('.gdt,.rdt').length === 0);
545545
}
546546
}
547547

@@ -725,7 +725,7 @@ function renderMatrixMetaCellType(cell, count) {
725725
}
726726
}
727727

728-
function makeMatrixMetaRow(stats, groupClass) {
728+
function makeMatrixMetaRow(stats) {
729729
var typeStats = stats.types;
730730
var matrixRow = HTTPSBPopup.matrixRowTemplate.clone().addClass('ro');
731731
var cells = $('div', matrixRow);

0 commit comments

Comments
 (0)