Skip to content

Commit 08e36d8

Browse files
committed
Merge pull request #4382 from yalishizhude/master
extension to support multiple selection
2 parents 3930e0e + bb4e142 commit 08e36d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: js/angular/directive/actionSheet.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ IonicModule
3636
'<div class="action-sheet" ng-class="{\'action-sheet-has-icons\': $actionSheetHasIcon}">' +
3737
'<div class="action-sheet-group action-sheet-options">' +
3838
'<div class="action-sheet-title" ng-if="titleText" ng-bind-html="titleText"></div>' +
39-
'<button class="button action-sheet-option" ng-click="buttonClicked($index)" ng-repeat="b in buttons" ng-bind-html="b.text"></button>' +
39+
'<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>' +
4040
'<button class="button destructive action-sheet-destructive" ng-if="destructiveText" ng-click="destructiveButtonClicked()" ng-bind-html="destructiveText"></button>' +
4141
'</div>' +
4242
'<div class="action-sheet-group action-sheet-cancel" ng-if="cancelText">' +

Diff for: js/angular/service/actionSheet.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function($rootScope, $compile, $animate, $timeout, $ionicTemplateLoader, $ionicP
145145
element.remove();
146146
// scope.cancel.$scope is defined near the bottom
147147
scope.cancel.$scope = sheetEl = null;
148-
(done || noop)();
148+
(done || noop)(opts.buttons);
149149
});
150150
};
151151

0 commit comments

Comments
 (0)