check box fix
This commit is contained in:
parent
174f70769a
commit
9c1936ee0a
@ -180,7 +180,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="toggleButtons">
|
<div id="toggleButtons">
|
||||||
<div id="markDone" style="background-color:{{work 'doneCol'}}">
|
<div id="markDone" style="background-color:{{work 'doneCol'}}">
|
||||||
<i class="fa fa-check-square-o" aria-hidden="true"></i>
|
<i class="fa {{work 'doneIcon'}}" aria-hidden="true"></i>
|
||||||
<p>{{work 'doneText'}}</p>
|
<p>{{work 'doneText'}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="markConfirm" style="color:{{work 'userConfirm'}}">
|
<div id="markConfirm" style="color:{{work 'userConfirm'}}">
|
||||||
|
|||||||
@ -1084,6 +1084,10 @@ function formReadable(input, val) { // Makes work information readable by users.
|
|||||||
if (Session.get("newWork")) return "";
|
if (Session.get("newWork")) return "";
|
||||||
if (!_.contains(input.done, Meteor.userId())) return "Mark done";
|
if (!_.contains(input.done, Meteor.userId())) return "Mark done";
|
||||||
return "Done!";
|
return "Done!";
|
||||||
|
case "doneIcon":
|
||||||
|
if (Session.get("newWork")) return "";
|
||||||
|
if (!_.contains(input.done, Meteor.userId())) return "fa-square-o";
|
||||||
|
return "fa-check-square-o";
|
||||||
case "userConfirm":
|
case "userConfirm":
|
||||||
if (!_.contains(input.confirmations, Meteor.userId())) return "";
|
if (!_.contains(input.confirmations, Meteor.userId())) return "";
|
||||||
return "#27A127";
|
return "#27A127";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user