Angular JS select
| $scope.changedRole; | |
| $scope.changeRole = function() { | |
| if (confirm('Are you sure you want set the role of selected users to ' + $scope.changedRole + '?')) { | |
| alert('TODO [ not implemented ]'); | |
| } | |
| }; | |
| $scope.roles = [ | |
| { | |
| name: 'guest', | |
| display_name: 'Guest', | |
| }, | |
| { | |
| name: 'user', | |
| display_name: 'Member', | |
| }, | |
| { | |
| name: 'admin', | |
| display_name: 'Admin', | |
| } | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment