diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index e8a98476db..21a5c32575 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -168,7 +168,7 @@ margin-right: 1px; } -.filters { +.filter-list { display: inline-block; *display: inline; border: 1px solid #555; @@ -177,9 +177,6 @@ margin-bottom: 1px; margin-top: 1px; vertical-align: middle; -} - -.filter-list { margin: 1px; padding: 1px; } @@ -194,7 +191,7 @@ .filter-list .close:hover {background: #bbb;} -.filter-list > li { +.filter-tag { display: inline-block; *display: inline; zoom: 1; diff --git a/InvenTree/InvenTree/static/script/inventree/filters.js b/InvenTree/InvenTree/static/script/inventree/filters.js index 47b86b227a..97f9d5b722 100644 --- a/InvenTree/InvenTree/static/script/inventree/filters.js +++ b/InvenTree/InvenTree/static/script/inventree/filters.js @@ -242,18 +242,19 @@ function setupFilterList(tableKey, table, target) { var element = $(target); + // One blank slate, please element.empty(); - element.append(``); - element.append(``); - for (var key in filters) { var value = getFilterOptionValue(tableKey, key, filters[key]); var title = getFilterTitle(tableKey, key); - - element.append(`