This commit is contained in:
Abhorrent_Anger 2024-03-21 15:13:44 +02:00
parent 24854f3e10
commit 71ceaeb5b8
1 changed files with 2 additions and 3 deletions

View File

@ -109,7 +109,7 @@ function handleHTML(steam_id, steam_name, html_string) {
inventory.append('<a href="https://next.backpack.tf/profiles/' + steam_id + '"><h3>' + steam_name + '</h3></a>'); inventory.append('<a href="https://next.backpack.tf/profiles/' + steam_id + '"><h3>' + steam_name + '</h3></a>');
decaled_items.each(function () { decaled_items.each(function () {
var parent = $(this).parent(); var parent = $(this).parent();
if (parent.hasClass('q-440-11') || parent.hasClass('nocraft') || parent.attr('data-listing_price').indexOf('keys') >= 0) { if (parent.hasClass('q-440-11') || parent.hasClass('nocraft') || parent.attr('data-listing_price').includes('keys')) {
filtered_item_count++; filtered_item_count++;
return; return;
} }
@ -119,8 +119,7 @@ function handleHTML(steam_id, steam_name, html_string) {
inventory.append(a); inventory.append(a);
}); });
if (filtered_item_count) { if (filtered_item_count) {
var link = getHiddenAccountLink(steam_id, steam_name); var link = getHiddenAccountLink(steam_id, steam_name + ' (' + filtered_item_count + ')');
link.prepend('(' + filtered_item_count + ') ')
$('#filtered-accounts').append(link); $('#filtered-accounts').append(link);
$('#filtered-accounts').fadeIn(); $('#filtered-accounts').fadeIn();
} }