Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('MyApp')
- .filter('campaignFilter', function(){
- return function(options, client_ids) {
- if (client_ids == null) {
- return options;
- } else {
- filtered = [];
- angular.forEach(options, function(option){
- if (client_ids.indexOf(option.client_id) > -1) {
- filtered.push(option);
- };
- });
- return filtered;
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement