Merge branch 'ent-7331-Bug-en-background-de-widgets-dashboards' into 'develop'

Fixed errors widgets background black-theme and required group

See merge request artica/pandorafms!4044
This commit is contained in:
vgilc 2021-04-21 09:29:10 +00:00
commit c99e810b54
3 changed files with 17 additions and 8 deletions

View File

@ -44,12 +44,12 @@ function update_dashboard(data) {
// eslint-disable-next-line no-unused-vars
function showGroup() {
$("#li-group").removeClass("hidden");
var private = $("#private").prop("checked");
if (private) {
$("#id_group").removeAttr("required");
$("#li-group").hide();
} else {
$("#id_group").attr("required", true);
$("#li-group").show();
}
}

View File

@ -649,7 +649,6 @@ form ul.form_flex {
justify-content: center;
height: 100%;
width: 100%;
background-color: #222;
}
.container-layout {

View File

@ -73,12 +73,22 @@ if ($manageDashboards !== 0) {
$output .= '</div>';
$output .= '</div>';
if ($config['style'] === 'pandora') {
$options['background'] = '#fff';
}
if (empty($options['background']) === true) {
if ($config['style'] === 'pandora') {
$options['background'] = '#ffffff';
}
if ($config['style'] === 'pandora_black') {
$options['background'] = '#222';
if ($config['style'] === 'pandora_black') {
$options['background'] = '#222222';
}
} else if ($options['background'] === '#ffffff'
&& $config['style'] === 'pandora_black'
) {
$options['background'] = '#222222';
} else if ($options['background'] === '#222222'
&& $config['style'] === 'pandora'
) {
$options['background'] = '#ffffff';
}
if ((int) $cellData['id_widget'] !== 0) {