summaryrefslogtreecommitdiff
path: root/assets/js/src/Project.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/src/Project.js')
-rw-r--r--assets/js/src/Project.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/assets/js/src/Project.js b/assets/js/src/Project.js
index e2412412..19941f03 100644
--- a/assets/js/src/Project.js
+++ b/assets/js/src/Project.js
@@ -15,4 +15,14 @@ Project.prototype.listen = function() {
})
});
});
+
+ $('#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();
+ }
+ });
};