Skip to content

Commit

Permalink
36114: Hinzufügen weiterer Filterkriterien angeboten, obwohl nicht mö…
Browse files Browse the repository at this point in the history
…glich
  • Loading branch information
tfamula committed Nov 14, 2023
1 parent 61d0c28 commit 479a4dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/UI/templates/js/Input/Container/dist/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,13 @@ var filter = function($) {
$('.input-group .btn.btn-bulky').attr('data-placement', 'bottom');

//Hide Add-Button when all Input Fields are shown in the Filter at the beginning
var addable_inputs = $(".il-popover-container:hidden").length;
if (addable_inputs === 0) {
var empty_list = true;
var addable_inputs = $($filter).find(".il-filter-add-list").find("li").each(function() {
if ($(this).css("display") !== "none" && $(this).css("visibility") !== "hidden") {
empty_list = false;
}
});
if (empty_list) {
$(".btn-bulky").parents(".il-popover-container").hide();
}

Expand Down
9 changes: 7 additions & 2 deletions src/UI/templates/js/Input/Container/src/filter.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,13 @@ var filter = function($) {
$('.input-group .btn.btn-bulky').attr('data-placement', 'bottom');

//Hide Add-Button when all Input Fields are shown in the Filter at the beginning
var addable_inputs = $(".il-popover-container:hidden").length;
if (addable_inputs === 0) {
var empty_list = true;
var addable_inputs = $($filter).find(".il-filter-add-list").find("li").each(function() {
if ($(this).css("display") !== "none" && $(this).css("visibility") !== "hidden") {
empty_list = false;
}
});
if (empty_list) {
$(".btn-bulky").parents(".il-popover-container").hide();
}

Expand Down

0 comments on commit 479a4dc

Please sign in to comment.