diff --git a/pandora_console/include/javascript/pandora_dashboards.js b/pandora_console/include/javascript/pandora_dashboards.js index 853379a2aa..b6e20aa4ba 100644 --- a/pandora_console/include/javascript/pandora_dashboards.js +++ b/pandora_console/include/javascript/pandora_dashboards.js @@ -232,6 +232,9 @@ function initialiceLayout(data) { }); if (!$("#checkbox-edit-mode").is(":checked")) { + $("#add-widget") + .parent() + .addClass("invisible_important"); $(".add-widget").hide(); } else { $(".new-widget-message").hide(); @@ -549,6 +552,9 @@ function initialiceLayout(data) { grid.resizable(".grid-stack-item", true); grid.float(false); $(".header-options").show(); + $("#add-widget") + .parent() + .removeClass("invisible_important"); $(".add-widget").show(); $(".new-widget-message").hide(); $("#container-layout").addClass("container-layout"); @@ -558,6 +564,9 @@ function initialiceLayout(data) { grid.resizable(".grid-stack-item", false); grid.float(true); $(".header-options").hide(); + $("#add-widget") + .parent() + .addClass("invisible_important"); $(".add-widget").hide(); $(".new-widget-message").show(); $("#container-layout").removeClass("container-layout"); @@ -776,6 +785,9 @@ function initialiceLayout(data) { }); if (!$("#checkbox-edit-mode").is(":checked")) { + $("#add-widget") + .parent() + .addClass("invisible_important"); $(".add-widget").hide(); } else { $(".new-widget-message").hide();