mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
removed dead space
This commit is contained in:
parent
a197b730a1
commit
53ddf5ae04
|
@ -418,7 +418,6 @@
|
|||
// ---------------------------
|
||||
// - ASSET STATUS CHART -
|
||||
// ---------------------------
|
||||
|
||||
var pieChartCanvas = $("#statusPieChart").get(0).getContext("2d");
|
||||
var pieChart = new Chart(pieChartCanvas);
|
||||
var ctx = document.getElementById("statusPieChart");
|
||||
|
@ -427,31 +426,27 @@
|
|||
position: 'top',
|
||||
responsive: true,
|
||||
maintainAspectRatio: true,
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: '{{ route('api.statuslabels.assets.bytype') }}',
|
||||
headers: {
|
||||
"X-Requested-With": 'XMLHttpRequest',
|
||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
dataType: 'json',
|
||||
success: function (data) {
|
||||
|
||||
var myPieChart = new Chart(ctx, {
|
||||
type: 'doughnut',
|
||||
data: data,
|
||||
options: pieOptions
|
||||
});
|
||||
|
||||
},
|
||||
error: function (data) {
|
||||
|
||||
// window.location.reload(true);
|
||||
}
|
||||
type: 'GET',
|
||||
url: '{{ route('api.statuslabels.assets.bytype') }}',
|
||||
headers: {
|
||||
"X-Requested-With": 'XMLHttpRequest',
|
||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
dataType: 'json',
|
||||
success: function (data) {
|
||||
var myPieChart = new Chart(ctx,{
|
||||
type : 'doughnut',
|
||||
data : data,
|
||||
options: pieOptions
|
||||
});
|
||||
},
|
||||
error: function (data) {
|
||||
// window.location.reload(true);
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue