summaryrefslogtreecommitdiff
path: root/assets/js/src/Project.js
blob: e241241222d20c884e3d36533e08fcce9a142bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function Project() {
}

Project.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()
            })
        });
    });
};