From b4e5dc7af7cdcb584921b051b6ab9451cffda96c Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Fri, 28 Dec 2018 17:56:12 +0000 Subject: [PATCH] #422 Network map positions will not save (onlinehupe) --- share/views/ajax/device/netmap.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/views/ajax/device/netmap.tt b/share/views/ajax/device/netmap.tt index 233ce9f6..4a27fba8 100644 --- a/share/views/ajax/device/netmap.tt +++ b/share/views/ajax/device/netmap.tt @@ -216,7 +216,7 @@ function saveMapPositions() { graph.inspect().main.nodes.each(function(n) { n.fixed = true }); $.post( '[% uri_for('/ajax/data/device/netmappositions') %]' - ,$("#nd_vlan-entry, #nd_hgroup-select, #nd_lgroup-select, input[name='q'], input[name='mapshow']").serialize() + ,$("#nd_vlan-entry, #nd_hgroup-select, #nd_lgroup-select, #nq, input[name='mapshow']").serialize() + '&positions=' + JSON.stringify(graph.positions()) ); toastr.success('Saved map positions.');