Rewrite component to change user/group role
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
Kanboard.ProjectPermission = function(app) {
|
||||
this.app = app;
|
||||
};
|
||||
|
||||
Kanboard.ProjectPermission.prototype.listen = function() {
|
||||
$('.project-change-role').on('change', function () {
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: $(this).data('url'),
|
||||
contentType: "application/json",
|
||||
type: "POST",
|
||||
processData: false,
|
||||
data: JSON.stringify({
|
||||
"id": $(this).data('id'),
|
||||
"role": $(this).val()
|
||||
})
|
||||
});
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user