working save/restore node positions with groups

This commit is contained in:
Oliver Gorwits
2017-12-24 12:09:40 +00:00
parent bf7e231ffe
commit 547d2934cb
4 changed files with 32 additions and 18 deletions

View File

@@ -123,7 +123,8 @@
// if user enters vlan but does not submit this will save wrong data
$.post(
'[% uri_for('/ajax/data/device/netmappositions') %]'
,'vlan=' + $('#nd_vlan-entry').val() + '&positions=' + JSON.stringify(graph.positions())
,$("#nd_vlan-entry, #nd_devgrp-select, input[name='mapshow']").serialize()
+ '&positions=' + JSON.stringify(graph.positions())
);
});
$('#nd_netmap-zoomtodevice').on('click', function(event) {