summaryrefslogtreecommitdiff
path: root/assets/js/components
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-10 11:36:22 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-10 11:36:22 -0500
commitc0049ed7e6459b234e69b763e82baca349763a4b (patch)
tree8d2ddb30656d60358048c1166b697ae7d9662db5 /assets/js/components
parent67d01951f5a0a8e2201707162c1f7454f26ac798 (diff)
Rewrite project creation component in vanilla js
Diffstat (limited to 'assets/js/components')
-rw-r--r--assets/js/components/project-creation-select-options.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/assets/js/components/project-creation-select-options.js b/assets/js/components/project-creation-select-options.js
new file mode 100644
index 00000000..618ec86c
--- /dev/null
+++ b/assets/js/components/project-creation-select-options.js
@@ -0,0 +1,9 @@
+KB.onChange('.js-project-creation-select-options', function (element) {
+ var projectId = element.value;
+
+ if (projectId === '0') {
+ KB.find('.js-project-creation-options').hide();
+ } else {
+ KB.find('.js-project-creation-options').show();
+ }
+});