send full query str from netmap for json
This commit is contained in:
@@ -29,11 +29,7 @@ function resizeGraphContainer() {
|
||||
}, 500)
|
||||
}
|
||||
|
||||
$.getJSON('[% uri_for('/ajax/data/device/netmap') %]',{
|
||||
q: '[% params.q %]'
|
||||
,vlan: '[% params.vlan %]'
|
||||
,mapshow: '[% params.mapshow %]'
|
||||
}, function(mapdata) {
|
||||
$.getJSON('[% uri_for('/ajax/data/device/netmap') %]?[% my_query %]', function(mapdata) {
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
window.graph = netGobrechtsD3Force('netmap_pane')
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<input type="radio" name="mapshow" id="nd_mapshow-only"
|
||||
[% 'checked' IF vars.sidebar_defaults.device_netmap.mapshow == 'only' %]
|
||||
[% 'disabled' IF NOT devgrp_list.size %] value="only">
|
||||
<label for="nd_mapshow-only">Host Groups</label>
|
||||
<label for="nd_mapshow-only">Host Groups[% ':' IF devgrp_list.size %]</label>
|
||||
</div>
|
||||
|
||||
[% IF devgrp_list.size %]
|
||||
@@ -82,6 +82,15 @@
|
||||
|
||||
<div class="clearfix nd_netmap-sidebar">
|
||||
|
||||
<div id="nd_vlan-label" class="control-group">
|
||||
<div class="controls">
|
||||
<label><span id="nd_vlan-label-text">Carrying VLAN: </span>
|
||||
<input name="vlan" id="nd_vlan-entry" class="input-mini" type="number" placeholder="number"
|
||||
value="[% params.vlan | html_entity %]" type="text"/>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[% IF devgrp_list.size %]
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
@@ -104,15 +113,6 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div id="nd_vlan-label" class="control-group">
|
||||
<div class="controls">
|
||||
<label><span id="nd_vlan-label-text">Carrying VLAN: </span>
|
||||
<input name="vlan" id="nd_vlan-entry" class="input-mini" type="number" placeholder="number"
|
||||
value="[% params.vlan | html_entity %]" type="text"/>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<button id="[% tab.tag %]_submit" type="submit" class="btn btn-info">
|
||||
|
||||
Reference in New Issue
Block a user