mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
c8fb128817
commit
dd5a11b921
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user