     link: (scope, element, attribute) ->
 
         globalFilterService.registerScope(scope)
-        
+
         scope.dataObj =
             showDirective: false
 

                    </button>
                    <div uib-dropdown-menu class="korp-uib-dropdown-menu">
                      <ul>
                        <li ng-repeat="value in possibleValues" ng-class="selected" class="attribute" 
                            ng-click="toggleSelected(value[0], $event)"
                            ng-if="isSelectedList(value[0])">
                          <span ng-if="isSelected(value[0])">✔</span>


        scope.getAvailableFilters = () ->
            return _.filter scope.dataObj.optionalFilters, (filter) -> filter not in scope.dataObj.selectedFilters

        scope.isOptionalFilter = (filterKey) ->
            return scope.dataObj.optionalFilters.indexOf(filterKey) > -1 and (scope.dataObj.defaultFilters.indexOf(filterKey) is -1)

        scope.addNewFilter = (value) ->
            globalFilterService.addNewFilter value, true

