#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

@@ -5,6 +5,7 @@
* #392 fix heuristic neighbour detection * #392 fix heuristic neighbour detection
* #393 avoid 'modification of readonly variable' error in netmap * #393 avoid 'modification of readonly variable' error in netmap
* #398 user submitted jobs are run regardless of max deferrals * #398 user submitted jobs are run regardless of max deferrals
* #394 enabled "Management IPs" hides after "Redraw Map"
* clean up check_mac() interface (ml-cms) * clean up check_mac() interface (ml-cms)
2.039021 - 2018-04-10 2.039021 - 2018-04-10

View File

@@ -157,6 +157,9 @@ $.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() {
@@ -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 // custom resize function as there is no event to fire and we need
// to react to the sidebar. // to react to the sidebar.
function resizeGraphContainer() { function resizeGraphContainer() {