hide not needed options on lib stats graph tab

This commit is contained in:
herby2212 2023-01-07 15:41:01 +01:00
commit 42d5ad5787

View file

@ -588,6 +588,8 @@
function loadGraphsTab1(time_range, yaxis) { function loadGraphsTab1(time_range, yaxis) {
$('#days-selection').show(); $('#days-selection').show();
$('#months-selection').hide(); $('#months-selection').hide();
$('#user-selection').show();
$('#yaxis-selection').show();
setGraphFormat(yaxis); setGraphFormat(yaxis);
@ -681,6 +683,8 @@
function loadGraphsTab2(time_range, yaxis) { function loadGraphsTab2(time_range, yaxis) {
$('#days-selection').show(); $('#days-selection').show();
$('#months-selection').hide(); $('#months-selection').hide();
$('#user-selection').show();
$('#yaxis-selection').show();
setGraphFormat(yaxis); setGraphFormat(yaxis);
@ -774,6 +778,8 @@
function loadGraphsTab3(time_range, yaxis) { function loadGraphsTab3(time_range, yaxis) {
$('#days-selection').hide(); $('#days-selection').hide();
$('#months-selection').show(); $('#months-selection').show();
$('#user-selection').show();
$('#yaxis-selection').show();
setGraphFormat(yaxis); setGraphFormat(yaxis);
@ -801,6 +807,8 @@
// Fixed as graph uses own measurement 'addition count' with formatting of 'plays' // Fixed as graph uses own measurement 'addition count' with formatting of 'plays'
setGraphFormat("plays"); setGraphFormat("plays");
$('#user-selection').hide();
$('#yaxis-selection').hide();
var _graph_1_call = $.ajax({ var _graph_1_call = $.ajax({
url: "get_additions_by_date", url: "get_additions_by_date",