1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-18 20:41:16 +02:00
This commit is contained in:
Ryan Cramer
2019-04-10 15:06:17 -04:00
parent dcf226995c
commit b0f11c15c5
2 changed files with 4 additions and 6 deletions

View File

@@ -126,13 +126,11 @@ var ProcessWireAdminTheme = {
} }
} }
if(skip) return; if(skip) return;
var hbc = $header.css('background-color').replace(/ /g, ''); // first field header background color
if(hbc === 'rgb(255,255,255)' || hbc === 'rgba(0,0,0,0)') return;
var $tab = $('#_' + $newTabContent.attr('id')).parent(); var $tab = $('#_' + $newTabContent.attr('id')).parent();
if(!$tab.length) return; if(!$tab.length) return;
var $a = $tab.children('a'); if($tab.css('background-color').replace(/ /g, '') != hbc) $tab.addClass('pw-tab-muted');
var bgc = $header.css('background-color');
if($tab.css('background-color') != bgc && $a.css('background-color') != bgc) {
$tab.addClass('pw-tab-muted');
}
}, },
/** /**

File diff suppressed because one or more lines are too long