fixed visual error dashboards

This commit is contained in:
Daniel Barbero Martin 2021-03-15 15:42:22 +01:00
parent 971f86601a
commit 2b8b27a863
2 changed files with 6 additions and 6 deletions

View File

@ -452,7 +452,7 @@ function initialiceLayout(data) {
$(".add-widget").show();
$(".new-widget-message").hide();
$("#container-layout").addClass("container-layout");
$("#add-widget").show();
$("#add-widget").removeClass("invisible");
} else {
grid.movable(".grid-stack-item", false);
grid.resizable(".grid-stack-item", false);
@ -461,7 +461,7 @@ function initialiceLayout(data) {
$(".add-widget").hide();
$(".new-widget-message").show();
$("#container-layout").removeClass("container-layout");
$("#add-widget").hide();
$("#add-widget").addClass("invisible");
}
});

View File

@ -43,10 +43,10 @@
$output = '';
// Div for modal update dashboard.
$output .= '<div id="modal-update-dashboard" class=""></div>';
$output .= '<div id="modal-add-widget" class=""></div>';
$output .= '<div id="modal-config-widget" class=""></div>';
$output .= '<div id="modal-slides-dialog" class=""></div>';
$output .= '<div id="modal-update-dashboard" style="display:none;"></div>';
$output .= '<div id="modal-add-widget" style="display:none;"></div>';
$output .= '<div id="modal-config-widget" style="display:none;"></div>';
$output .= '<div id="modal-slides-dialog" style="display:none;"></div>';
// Layout.
$output .= '<div class="container-fluid">';