Skip to content

Commit

Permalink
OO#155 adding link from hauptabo to zusatzabo
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmpp committed Apr 25, 2024
1 parent bc1b5c8 commit c0585cf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/scripts/abos/overview/abosoverview.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,19 @@ angular.module('openolitor-admin')
isDisabled: function() {
return !$scope.checkboxes.checkedAny;
}
}, {
label: gettext('Zusatzabo enzeigen'),
iconClass: 'glyphicon glyphicon-gift',
isDisabled: function() {
return !$scope.checkboxes.checkedAny;
},
onExecute: function() {
var result = lodash.filter($scope.checkboxes.data, function(d) {
return lodash.includes($scope.checkboxes.ids, d.id);
});
result = lodash.map(result, 'id');
$location.path('/zusatzabos').search('q', 'HauptAboId=' + result.join()).search('tf','{"abotypId":""}');
}
}];

function search() {
Expand Down

0 comments on commit c0585cf

Please sign in to comment.