{"size": 541, "ext": "js", "max_stars_repo_path": "httpdocs/js/Teams.js", "max_stars_repo_name": "Programie/TeamPlaner", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "httpdocs/js/Teams.js", "max_issues_repo_name": "Programie/TeamPlaner", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "httpdocs/js/Teams.js", "max_forks_repo_name": "Programie/TeamPlaner", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.90625, "max_line_length": 57, "alphanum_fraction": 0.4953789279}
function Teams() {
}

Teams.load = function (callback) {
    if (this.list !== null) {
        if (callback) {
            callback();
        }
        return;
    }

    loadDataFromBackend("teams", "GET", function (data) {
        this.list = data;

        if (callback) {
            callback();
        }
    }.bind(this));
};

Teams.setCurrent = function (team) {
    Cookies.set("team", team, {
        expires: 365,
        path: ""
    });
};

Teams.getCurrent = function () {
    return Cookies.get("team");
};

Teams.list = null;