mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Unique id, prevent conflict w/ data usage
This commit is contained in:
parent
9dc2a67d70
commit
d15fd5692d
@ -201,7 +201,7 @@ pre.unstyled {
|
|||||||
font-size: 0.9rem!important;
|
font-size: 0.9rem!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
canvas#divChartBandwidthhourly {
|
canvas#divDBChartBandwidthhourly {
|
||||||
height: 350px!important;
|
height: 350px!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
function ShowBandwidthChartHandler(e) {
|
function ShowBandwidthChartHandler(e) {
|
||||||
// Remove hourly chartjs chart
|
// Remove hourly chartjs chart
|
||||||
$('#divChartBandwidthhourly').empty();
|
$('#divDBChartBandwidthhourly').empty();
|
||||||
// Construct ajax uri for getting the proper data
|
// Construct ajax uri for getting the proper data
|
||||||
var timeunit = 'hourly';
|
var timeunit = 'hourly';
|
||||||
var uri = 'ajax/bandwidth/get_bandwidth.php?';
|
var uri = 'ajax/bandwidth/get_bandwidth.php?';
|
||||||
@ -62,7 +62,7 @@
|
|||||||
return e.date;
|
return e.date;
|
||||||
});
|
});
|
||||||
// Init. chart with label series
|
// Init. chart with label series
|
||||||
var barchart = CreateChart('divChartBandwidth'+timeunit, labels);
|
var barchart = CreateChart('divDBChartBandwidth'+timeunit, labels);
|
||||||
var dataRx = jsondata.map(function(e) {
|
var dataRx = jsondata.map(function(e) {
|
||||||
return e.rx;
|
return e.rx;
|
||||||
});
|
});
|
||||||
|
@ -34,7 +34,7 @@ $ifaceStatus = $wlan0up ? "up" : "down";
|
|||||||
<h4><?php echo _("Hourly traffic amount"); ?></h4>
|
<h4><?php echo _("Hourly traffic amount"); ?></h4>
|
||||||
<div id="divInterface" class="d-none"><?php echo RASPI_WIFI_CLIENT_INTERFACE; ?></div>
|
<div id="divInterface" class="d-none"><?php echo RASPI_WIFI_CLIENT_INTERFACE; ?></div>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<canvas id="divChartBandwidthhourly"></canvas>
|
<canvas id="divDBChartBandwidthhourly"></canvas>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.card-body -->
|
</div><!-- /.card-body -->
|
||||||
</div><!-- /.card-->
|
</div><!-- /.card-->
|
||||||
|
Loading…
Reference in New Issue
Block a user