#394 enabled "Management IPs" hides after "Redraw Map"

This commit is contained in:
Oliver Gorwits
2018-04-18 22:20:22 +01:00
parent 1c2c3e1f09
commit fb903f913d
2 changed files with 8 additions and 0 deletions

View File

@@ -157,6 +157,9 @@ $.getJSON('[% uri_for('/ajax/data/device/netmap') %]?[% my_query %]', function(m
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
if ('[% params.mapshow %]' == 'neighbors') {
setTimeout(function() {
@@ -262,6 +265,10 @@ $(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange', fu
});
});
// **************************************************
// ************ react to sidebar in/out *************
// **************************************************
// custom resize function as there is no event to fire and we need
// to react to the sidebar.
function resizeGraphContainer() {