Rewrite project creation component in vanilla js
This commit is contained in:
9
assets/js/components/project-creation-select-options.js
Normal file
9
assets/js/components/project-creation-select-options.js
Normal file
@@ -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();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user