diff options
Diffstat (limited to 'assets/js/src/Project.js')
-rw-r--r-- | assets/js/src/Project.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/assets/js/src/Project.js b/assets/js/src/Project.js deleted file mode 100644 index 19941f03..00000000 --- a/assets/js/src/Project.js +++ /dev/null @@ -1,28 +0,0 @@ -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() - }) - }); - }); - - $('#project-creation-form #form-src_project_id').on('change', function() { - var srcProjectId = $(this).val(); - - if (srcProjectId == 0) { - $(".project-creation-options").hide(); - } else { - $(".project-creation-options").show(); - } - }); -}; |