diff --git a/InvenTree/templates/js/dynamic/inventree.js b/InvenTree/templates/js/dynamic/inventree.js index 10f7c074c9..990d056e59 100644 --- a/InvenTree/templates/js/dynamic/inventree.js +++ b/InvenTree/templates/js/dynamic/inventree.js @@ -153,7 +153,7 @@ function inventreeDocReady() { }); // Generate brand-icons - $('.brand-icon').each(function(i, obj){ + $('.brand-icon').each(function(i, obj) { loadBrandIcon($(this), $(this).attr('brand_name')); }); } @@ -255,12 +255,12 @@ function inventreeLoad(name, defaultValue) { } } -function loadBrandIcon(elem, name) { +function loadBrandIcon(element, name) { // check if icon exists var icon = window.FontAwesome.icon({prefix: 'fab', iconName: name}); - if (icon){ + if (icon) { // add icon to button - elem.addClass('fab fa-' + name); + element.addClass('fab fa-' + name); } }