Replace color dropdown by color picker in task forms
This commit is contained in:
@@ -7,6 +7,7 @@ function App() {
|
||||
this.dropdown = new Dropdown();
|
||||
this.tooltip = new Tooltip(this);
|
||||
this.popover = new Popover(this);
|
||||
this.task = new Task();
|
||||
this.keyboardShortcuts();
|
||||
this.chosen();
|
||||
this.poll();
|
||||
@@ -34,6 +35,7 @@ App.prototype.listen = function() {
|
||||
this.tooltip.listen();
|
||||
this.dropdown.listen();
|
||||
this.search.listen();
|
||||
this.task.listen();
|
||||
this.search.focus();
|
||||
this.taskAutoComplete();
|
||||
this.datePicker();
|
||||
|
||||
10
assets/js/src/Task.js
Normal file
10
assets/js/src/Task.js
Normal file
@@ -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"));
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user