Skip to content

Commit

Permalink
Merge pull request #380 from marmelab/batch_actions_config
Browse files Browse the repository at this point in the history
[RFR] Batch actions config
  • Loading branch information
fzaninotto committed Apr 2, 2015
2 parents 94fdf1d + ab1ff08 commit 5ee3013
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
23 changes: 11 additions & 12 deletions build/ng-admin.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/ng-admin.min.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/javascripts/ng-admin/Crud/misc/ViewBatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ define(function (require) {

return {
restrict: 'E',
transclude: true,
scope: {
'entity': '=',
'selection': '=',
'buttons': '&'
},
template: viewActionsTemplate,
link: function(scope) {

scope.isopen = false;

scope.toggleDropdown = function($event) {
Expand Down
1 change: 1 addition & 0 deletions src/javascripts/ng-admin/Crud/misc/view-actions.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<span ng-repeat="button in buttons" ng-switch="button" class="view_actions">
<ma-view-batch-actions ng-switch-when="batch" buttons="batchButtons()" selection="selection" entity="entity"></ma-view-batch-actions>
<ma-back-button ng-switch-when="back"></ma-back-button>
<ma-list-button ng-switch-when="list" entity="entity"></ma-list-button>
<ma-create-button ng-switch-when="create" entity="entity"></ma-create-button>
Expand Down

0 comments on commit 5ee3013

Please sign in to comment.