Skip to content
Snippets Groups Projects
Commit e0335595 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Made grey warning gray instead of blue

parent 02fc1896
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,11 @@ div.popover { ...@@ -63,6 +63,11 @@ div.popover {
min-width: 250px; min-width: 250px;
max-width: 400px !important; max-width: 400px !important;
} }
div.alert-nowarning{
background-color: #dddddd;
}
/* /*
.tooltip.in { .tooltip.in {
opacity: 1; opacity: 1;
......
...@@ -160,6 +160,9 @@ function initForecastMap(lonLat, zoomLevel, organizationId, sourceHostname, mapA ...@@ -160,6 +160,9 @@ function initForecastMap(lonLat, zoomLevel, organizationId, sourceHostname, mapA
var alertClass = ""; var alertClass = "";
switch(data.results[index].warningStatus) switch(data.results[index].warningStatus)
{ {
case 1:
alertClass = "alert-info";
break;
case 2: case 2:
alertClass = "alert-success"; alertClass = "alert-success";
break; break;
...@@ -170,7 +173,7 @@ function initForecastMap(lonLat, zoomLevel, organizationId, sourceHostname, mapA ...@@ -170,7 +173,7 @@ function initForecastMap(lonLat, zoomLevel, organizationId, sourceHostname, mapA
alertClass = "alert-danger"; alertClass = "alert-danger";
break; break;
default: default:
alertClass = "alert-info"; alertClass = "alert-nowarning";
} }
resultHTML.push("<div class=\"" + alertClass + "\">" + moment(data.results[index].resultValidTime).format("YYYY-MM-DD") + ": <a href=\"/forecasts/" + forecastConfiguration.forecastConfigurationId + "\" class=\"alert-link\">" + modelLocalNames[forecastConfiguration.modelId] + "</a></div>"); resultHTML.push("<div class=\"" + alertClass + "\">" + moment(data.results[index].resultValidTime).format("YYYY-MM-DD") + ": <a href=\"/forecasts/" + forecastConfiguration.forecastConfigurationId + "\" class=\"alert-link\">" + modelLocalNames[forecastConfiguration.modelId] + "</a></div>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment