diff options
Diffstat (limited to 'assets/js/src/Task.js')
-rw-r--r-- | assets/js/src/Task.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/assets/js/src/Task.js b/assets/js/src/Task.js new file mode 100644 index 00000000..b3dc1b63 --- /dev/null +++ b/assets/js/src/Task.js @@ -0,0 +1,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")); + }); +}; |