summaryrefslogtreecommitdiff
path: root/assets/js/src/ProjectCreation.js
blob: 180eab9491bac9c001f41ba70a2a07e8e61bcb3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();
        }
    });
};