mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Clean up passing unnecessary configs to homepage
This commit is contained in:
parent
20056718db
commit
78f959d39a
3 changed files with 38 additions and 37 deletions
|
@ -84,15 +84,12 @@
|
|||
currentActivity();
|
||||
setInterval(currentActivity, 15000);
|
||||
|
||||
function getHomeStats(days, stat_type, stat_count, notify_watched_percent) {
|
||||
function getHomeStats(days) {
|
||||
$.ajax({
|
||||
url: 'home_stats',
|
||||
cache: false,
|
||||
async: true,
|
||||
data: {time_range: days,
|
||||
stat_type: stat_type,
|
||||
stat_count: stat_count,
|
||||
notify_watched_percent: notify_watched_percent},
|
||||
data: { },
|
||||
complete: function(xhr, status) {
|
||||
$("#home-stats").html(xhr.responseText);
|
||||
}
|
||||
|
@ -170,10 +167,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
getHomeStats(${config['home_stats_length']},
|
||||
${config['home_stats_type']},
|
||||
${config['home_stats_count']},
|
||||
${config['notify_watched_percent']});
|
||||
getHomeStats();
|
||||
getLibraryStatsHeader();
|
||||
getLibraryStats();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue