Rewrite project creation component in vanilla js

This commit is contained in:
Frederic Guillot
2016-12-10 11:36:22 -05:00
parent 67d01951f5
commit c0049ed7e6
7 changed files with 29 additions and 21 deletions

View File

@@ -1,15 +0,0 @@
Kanboard.ProjectCreation = function(app) {
this.app = app;
};
Kanboard.ProjectCreation.prototype.onPopoverOpened = 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();
}
});
};