update refresh with media_type

This commit is contained in:
herby2212 2023-07-11 01:20:20 +02:00
commit a66267275d

View file

@ -1049,7 +1049,11 @@ DOCUMENTATION :: END
$.ajax({ $.ajax({
url: 'item_user_stats', url: 'item_user_stats',
async: true, async: true,
data: { rating_key: "${data['rating_key']}", show_all_users: $('#switch-show-all-users').prop('checked') }, data: {
rating_key: "${data['rating_key']}",
media_type: "${data['media_type']}",
show_all_users: $('#switch-show-all-users').prop('checked')
},
complete: function(xhr, status) { complete: function(xhr, status) {
$("#user-stats").html(xhr.responseText); $("#user-stats").html(xhr.responseText);
} }