diff --git a/web/skins/classic/css/classic/views/zone.css b/web/skins/classic/css/classic/views/zone.css index 52611f5ea..897ee50ee 100644 --- a/web/skins/classic/css/classic/views/zone.css +++ b/web/skins/classic/css/classic/views/zone.css @@ -95,6 +95,9 @@ } .zones polygon { fill-opacity: 0.25; + stroke-width: 0; +} +.zones polygon.Editing { stroke-width: 2px; } .Active { diff --git a/web/skins/classic/css/dark/views/zone.css b/web/skins/classic/css/dark/views/zone.css index 52611f5ea..884c8dbe0 100644 --- a/web/skins/classic/css/dark/views/zone.css +++ b/web/skins/classic/css/dark/views/zone.css @@ -95,7 +95,10 @@ } .zones polygon { fill-opacity: 0.25; - stroke-width: 2px; + stroke-width: 0; +} +.zones polygon.Editing { + stroke-width: 2px; } .Active { stroke: #ff0000; diff --git a/web/skins/classic/css/flat/views/zone.css b/web/skins/classic/css/flat/views/zone.css index 52611f5ea..54ea4eabf 100644 --- a/web/skins/classic/css/flat/views/zone.css +++ b/web/skins/classic/css/flat/views/zone.css @@ -95,6 +95,9 @@ } .zones polygon { fill-opacity: 0.25; + stroke-width: 0; +} +.zones polygon.Editing { stroke-width: 2px; } .Active { diff --git a/web/skins/classic/views/zone.php b/web/skins/classic/views/zone.php index a61e549d4..c7875e08a 100644 --- a/web/skins/classic/views/zone.php +++ b/web/skins/classic/views/zone.php @@ -75,8 +75,9 @@ if ( !isset($newZone) ) else { $zone = array( - 'Name' => translate('New'), 'Id' => 0, + 'Name' => translate('New'), + 'Type' => 'Active', 'MonitorId' => $monitor->Id(), 'NumCoords' => 4, 'Coords' => sprintf( "%d,%d %d,%d, %d,%d %d,%d", $minX, $minY, $maxX, $minY, $maxX, $maxY, $minX, $maxY ), @@ -217,7 +218,22 @@ xhtmlHeaders(__FILE__, translate('Zone') );