mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updated MyTasks to work like Tasks (multi-select)
This commit is contained in:
parent
98bcbcd256
commit
605d138b0b
4 changed files with 59 additions and 22 deletions
|
|
@ -69,13 +69,13 @@ Template.taskForm.events({
|
|||
let taskDateErr = false;
|
||||
let userInfo;
|
||||
let actDate = [];
|
||||
console.dir(taskNameArr);
|
||||
// console.dir(taskNameArr);
|
||||
|
||||
if (taskNameArr == null || taskNameArr == []) {
|
||||
taskNameErr = true;
|
||||
}
|
||||
|
||||
if (taskDate == null || taskDate == []) {
|
||||
if (taskDateArr == null || taskDateArr == []) {
|
||||
taskDateErr = true;
|
||||
} else {
|
||||
for (i = 0; i < taskDateArr.length; i++) {
|
||||
|
|
@ -97,7 +97,6 @@ Template.taskForm.events({
|
|||
console.log(" ERROR adding the new task: " + err);
|
||||
} else {
|
||||
console.log(" SUCCESS adding the new task.");
|
||||
M.Chips.getInstance($("#taskName")).deleteChip();
|
||||
Session.set("taskDateArr", []);
|
||||
$("#taskDate").val("");
|
||||
$("#taskUser").val("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue