parent
ceab6e45cc
commit
a5cc64f367
@ -0,0 +1,17 @@ |
||||
angular.module('openproject.workPackages.directives') |
||||
|
||||
.directive('filterClear', [function(){ |
||||
return { |
||||
restrict: 'E', |
||||
templateUrl: '/templates/work_packages/filter_clear.html', |
||||
// scope: {
|
||||
// query: '='
|
||||
// },
|
||||
scope: true, |
||||
link: function(scope, element, attributes) { |
||||
scope.clearFilter = function(){ |
||||
scope.query.clearFilters(); |
||||
} |
||||
} |
||||
}; |
||||
}]); |
@ -0,0 +1,3 @@ |
||||
<span> |
||||
<a href="" class="icon icon-undo" ng-click="clearFilter()">Clear</a> |
||||
</span> |
Loading…
Reference in new issue