#394 (redux) enabled "Management IPs" hides after "Redraw Map"

This commit is contained in:
Oliver Gorwits
2018-04-19 08:17:37 +01:00
parent 8d1fb71c76
commit a30cb33de9
3 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,10 @@
* #401 Autodiscovery via EIGRP peers * #401 Autodiscovery via EIGRP peers
[BUG FIXES]
* #394 (redux) enabled "Management IPs" hides after "Redraw Map"
2.039022 - 2018-04-18 2.039022 - 2018-04-18
[BUG FIXES] [BUG FIXES]

View File

@@ -224,7 +224,7 @@ ajax '/ajax/data/device/netmap' => require_login sub {
ID => $device->ip, ID => $device->ip,
SIZEVALUE => (param('dynamicsize') ? $color_lkp{speed} : 3000), SIZEVALUE => (param('dynamicsize') ? $color_lkp{speed} : 3000),
((exists $color_lkp{$colorby}) ? (COLORVALUE => $color_lkp{$colorby}) : ()), ((exists $color_lkp{$colorby}) ? (COLORVALUE => $color_lkp{$colorby}) : ()),
LABEL => $name, LABEL => (param('showips') ? ($device->ip .' '. $name) : $name),
ORIG_LABEL => $name, ORIG_LABEL => $name,
INFOSTRING => make_node_infostring($device), INFOSTRING => make_node_infostring($device),
LINK => uri_for('/device', { LINK => uri_for('/device', {

View File

@@ -157,9 +157,6 @@ $.getJSON('[% uri_for('/ajax/data/device/netmap') %]?[% my_query %]', function(m
graph.start(mapdata); graph.start(mapdata);
// trigger update of router labels (to reflect sidebar setting)
$('#nd_showips').trigger('change');
// about a second after render starts, zoom in a bit // about a second after render starts, zoom in a bit
if ('[% params.mapshow %]' == 'neighbors') { if ('[% params.mapshow %]' == 'neighbors') {
setTimeout(function() { setTimeout(function() {