prevent save positions when in neighbor view mode
This commit is contained in:
@@ -23,6 +23,8 @@
|
|||||||
$('.nd_modal').modal({show: false});
|
$('.nd_modal').modal({show: false});
|
||||||
$("[rel=tooltip]").tooltip({live: true});
|
$("[rel=tooltip]").tooltip({live: true});
|
||||||
$("[rel=popover]").popover({live: true});
|
$("[rel=popover]").popover({live: true});
|
||||||
|
|
||||||
|
$("input[name='mapshow']").trigger('change');
|
||||||
}
|
}
|
||||||
|
|
||||||
// on load, establish global delegations for now and future
|
// on load, establish global delegations for now and future
|
||||||
@@ -127,6 +129,11 @@
|
|||||||
+ '&positions=' + JSON.stringify(graph.positions())
|
+ '&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) {
|
$('#nd_netmap-zoomtodevice').on('click', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var node = graph.nodeDataById( graph['nd2']['centernode'] );
|
var node = graph.nodeDataById( graph['nd2']['centernode'] );
|
||||||
|
|||||||
Reference in New Issue
Block a user