Skip to content

Commit

Permalink
extension to support multiple selection
Browse files Browse the repository at this point in the history
  • Loading branch information
yalishizhude committed Sep 18, 2015
1 parent 356fabc commit bb4e142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/angular/directive/actionSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ IonicModule
'<div class="action-sheet" ng-class="{\'action-sheet-has-icons\': $actionSheetHasIcon}">' +
'<div class="action-sheet-group action-sheet-options">' +
'<div class="action-sheet-title" ng-if="titleText" ng-bind-html="titleText"></div>' +
'<button class="button action-sheet-option" ng-click="buttonClicked($index)" ng-repeat="b in buttons" ng-bind-html="b.text"></button>' +
'<button class="button action-sheet-option" ng-click="buttonClicked($index)" ng-class="b.className" ng-repeat="b in buttons" ng-bind-html="b.text"></button>' +
'<button class="button destructive action-sheet-destructive" ng-if="destructiveText" ng-click="destructiveButtonClicked()" ng-bind-html="destructiveText"></button>' +
'</div>' +
'<div class="action-sheet-group action-sheet-cancel" ng-if="cancelText">' +
Expand Down
2 changes: 1 addition & 1 deletion js/angular/service/actionSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function($rootScope, $compile, $animate, $timeout, $ionicTemplateLoader, $ionicP
element.remove();
// scope.cancel.$scope is defined near the bottom
scope.cancel.$scope = sheetEl = null;
(done || noop)();
(done || noop)(opts.buttons);
});
};

Expand Down

0 comments on commit bb4e142

Please sign in to comment.