diff --git a/share/views/js/device.js b/share/views/js/device.js index ffcfbffb..9752050c 100644 --- a/share/views/js/device.js +++ b/share/views/js/device.js @@ -23,6 +23,8 @@ $('.nd_modal').modal({show: false}); $("[rel=tooltip]").tooltip({live: true}); $("[rel=popover]").popover({live: true}); + + $("input[name='mapshow']").trigger('change'); } // on load, establish global delegations for now and future @@ -127,6 +129,11 @@ + '&positions=' + JSON.stringify(graph.positions()) ); }); + $("input[name='mapshow']").change(function() { + var newval = $("input[name='mapshow']:checked").val(); + $('#nd_netmap-save').prop('disabled', + ((newval == 'neighbors') ? true : false)); + }); $('#nd_netmap-zoomtodevice').on('click', function(event) { event.preventDefault(); var node = graph.nodeDataById( graph['nd2']['centernode'] );