webui: availability map update (#4300)

* a-map update 3

* pre-commit.php fixes

* moved group query inside if
This commit is contained in:
crcro
2016-09-02 20:42:45 +03:00
committed by Tony Murray
parent 05f872cf11
commit 921d5b9ed5
6 changed files with 90 additions and 25 deletions

View File

@@ -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() {