summaryrefslogtreecommitdiff
path: root/assets/js/src/Task.js
blob: b3dc1b6326d289d9a21c039eeb119f7e1580f70d (plain)
1
2
3
4
5
6
7
8
9
10
function Task() {
}

Task.prototype.listen = function() {
    $(document).on("click", ".color-square", function() {
        $(".color-square-selected").removeClass("color-square-selected");
        $(this).addClass("color-square-selected");
        $("#form-color_id").val($(this).data("color-id"));
    });
};