Work should be removed when 'done', fixed #47
This commit is contained in:
parent
dddfe53c59
commit
96e413f005
@ -130,6 +130,10 @@ Template.registerHelper('myClasses', () => {
|
||||
j = 0;
|
||||
}
|
||||
}
|
||||
if(thisWork[j] !== "no" && thisWork[j].done.indexOf(Meteor.userId()) !== -1) {
|
||||
thisWork[j] = "no";
|
||||
j = 0;
|
||||
}
|
||||
}
|
||||
while(thisWork.indexOf("no") !== -1) thisWork.splice(thisWork.indexOf("no"),1);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user