Sha256: 4ae17b7428d3908be426abc48faf1efca9bb140f2bac99ac1b9616c32044e613

Contents?: true

Size: 621 Bytes

Versions: 94

Compression:

Stored size: 621 Bytes

Contents

/**
 * @ngdoc filter
 * @name  Bastion.subscriptions.filter:groupedFilter.filter.js
 *
 */
angular.module('Bastion.subscriptions').filter('groupedFilter', function () {
    return function (grouped, search) {
        var result = {};
        angular.forEach(grouped, function (value, key) {
            if (angular.isUndefined(search)) {
                search = "";
            } else {
                search = search.toLowerCase();
            }
            if (key.toLowerCase().indexOf(search) > -1 || search === "") {
                result[key] = value;
            }
        });
        return result;
    };
});

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
katello-3.13.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.13.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.13.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.13.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.13.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.12.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.12.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.11.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.10.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.10.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.10.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js