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.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.2.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.2.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.2.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.2.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.2.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.2.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.1.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-2.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js
katello-3.1.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/grouped.filter.js