{"size": 798, "ext": "js", "max_stars_repo_path": "assets/js/src/BoardTask.js", "max_stars_repo_name": "amNews/kanboard", "max_stars_repo_stars_event_min_datetime": "2017-03-08T09:14:22.000Z", "max_stars_repo_stars_event_max_datetime": "2017-03-08T09:14:22.000Z", "max_issues_repo_path": "assets/js/src/BoardTask.js", "max_issues_repo_name": "amNews/kanboard", "max_issues_repo_issues_event_min_datetime": "2016-06-19T17:38:03.000Z", "max_issues_repo_issues_event_max_datetime": "2016-06-19T17:38:03.000Z", "max_forks_repo_path": "assets/js/src/BoardTask.js", "max_forks_repo_name": "amNews/kanboard", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 26.6, "max_line_length": 80, "alphanum_fraction": 0.5551378446}
Kanboard.BoardTask = function(app) {
    this.app = app;
};

Kanboard.BoardTask.prototype.listen = function() {
    var self = this;

    $(document).on("click", ".task-board-change-assignee", function(e) {
        e.preventDefault();
        e.stopPropagation();
        self.app.get("Popover").open($(this).data('url'));
    });

    $(document).on("click", ".task-board", function(e) {
        if (e.target.tagName != "A" && e.target.tagName != "IMG") {
            window.location = $(this).data("task-url");
        }
    });
};

Kanboard.BoardTask.prototype.keyboardShortcuts = function() {
    var self = this;

    if (self.app.hasId("board")) {
        Mousetrap.bind("n", function () {
            self.app.get("Popover").open($("#board").data("task-creation-url"));
        });
    }
};
