Lelz I broke everything again

This commit is contained in:
Alexandre Aubin 2020-05-23 17:58:14 +02:00
parent 660f6c0c65
commit 211f285dd9
2 changed files with 2 additions and 2 deletions

View file

@ -363,7 +363,7 @@ $(document).ready(function () {
$('.app-card_'+ app_id + ' .app-title').append(' <span class="label label-'+app_badge_css_style+'">'+app_badge+'</span>');
}
if (typeof(infos.category) === "string") {
category = temp1.find(function(el) { return el.id == infos.category; });
category = data["categories"].find(function(el) { return el.id == infos.category; });
if (typeof(category) !== "undefined")
{
display = category["title"][default_lang] || category["title"]["en"];

View file

@ -362,7 +362,7 @@ $(document).ready(function () {
$('.app-card_'+ app_id + ' .app-title').append(' <span class="label label-'+app_badge_css_style+'">'+app_badge+'</span>');
}
if (typeof(infos.category) === "string") {
category = temp1.find(function(el) { return el.id == infos.category; });
category = data["categories"].find(function(el) { return el.id == infos.category; });
if (typeof(category) !== "undefined")
{
display = category["title"][default_lang] || category["title"]["en"];