mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: availability map update (#4300)
* a-map update 3 * pre-commit.php fixes * moved group query inside if
This commit is contained in:
@@ -224,11 +224,11 @@ $(document).on("click", '.collapse-neighbors', function(event)
|
||||
continued.toggle();
|
||||
});
|
||||
|
||||
|
||||
//availability-map mode change
|
||||
$(document).on("change", '#mode', function() {
|
||||
$.post('ajax_mapview.php',
|
||||
{
|
||||
mapView: $(this).val()
|
||||
map_view: $(this).val()
|
||||
},
|
||||
function(data) {
|
||||
location.reload();
|
||||
@@ -236,6 +236,18 @@ $(document).on("change", '#mode', function() {
|
||||
);
|
||||
});
|
||||
|
||||
//availability-map device group
|
||||
$(document).on("change", '#group', function() {
|
||||
$.post('ajax_mapview.php',
|
||||
{
|
||||
group_view: $(this).val()
|
||||
},
|
||||
function(data){
|
||||
location.reload();
|
||||
},'json'
|
||||
);
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
var lines = 'on';
|
||||
$("#linenumbers").button().click(function() {
|
||||
|
||||
Reference in New Issue
Block a user