implement host_group_displaynames and fix vlan save bug

This commit is contained in:
Oliver Gorwits
2017-12-23 22:06:24 +00:00
parent 35ed34ed2f
commit 9a13bb7f9b
5 changed files with 33 additions and 18 deletions

View File

@@ -120,9 +120,10 @@
});
$('#nd_netmap-save').on('click', function(event) {
event.preventDefault();
// if user enters vlan but does not submit this will save wrong data
$.post(
'[% uri_for('/ajax/data/device/netmappositions') %]'
,'vlan=[% params.vlan %]&positions=' + JSON.stringify(graph.positions())
,'vlan=' + $('#nd_vlan-entry').val() + '&positions=' + JSON.stringify(graph.positions())
);
});
$('#nd_netmap-zoomtodevice').on('click', function(event) {