Skip to content

Commit

Permalink
Merge pull request #4193 from ehelms/fixes-5759
Browse files Browse the repository at this point in the history
Fixes #5759: Make search and filtering on Content View Filters work as i...
  • Loading branch information
ehelms committed Jun 2, 2014
2 parents 865d56a + 5f3fd9b commit b5dbd4f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ angular.module('Bastion.content-views').controller('AvailablePackageGroupFilterC
);

$scope.detailsTable = nutupane.table;
nutupane.table.closeItem = function () {};

$scope.addPackageGroups = function (filter) {
var packageGroupNames = nutupane.getAllSelectedResults('name').included.ids;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ angular.module('Bastion.content-views').controller('FiltersController',
angular.forEach(filterIds, removeFilter);
};

nutupane.table.closeItem = function () {};

$scope.getFilterState = function (filter) {
var state;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ angular.module('Bastion.content-views').controller('PackageGroupFilterListContro
);

$scope.detailsTable = nutupane.table;
nutupane.table.closeItem = function () {};

$scope.removePackageGroups = function () {
var packageGroupNames = nutupane.getAllSelectedResults('name').included.ids,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<input type="text"
class="form-control filter-input"
placeholder="{{ 'Filter' | translate }}"
ng-model="repositorySearch"/>
ng-model="packageFilter"/>
</div>

<button class="btn btn-default fr" ng-click="removeRules(filter)">
Expand Down Expand Up @@ -70,7 +70,7 @@
</td>
</tr>

<tr ng-repeat="rule in filter.rules" row-select="rule">
<tr ng-repeat="rule in filter.rules | filter:packageFilter" row-select="rule">
<td class="row-select">
<input type="checkbox" ng-model="rule.selected"/>
</td>
Expand Down

0 comments on commit b5dbd4f

Please sign in to comment.