fix 2 small bugs
This commit is contained in:
parent
1bdd65c4bf
commit
1f1a9fa0a3
@ -32,10 +32,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="classListHolder">
|
||||
<h3>Enrolled</h3><h3 id="calCreWork">{{calCreWork}}</h3>
|
||||
{{#each myClasses}}
|
||||
{{> sidebarClasses}}
|
||||
{{/each}}
|
||||
{{#if myClasses}}
|
||||
|
||||
<h3>Enrolled</h3><h3 id="calCreWork">{{calCreWork}}</h3>
|
||||
{{#each myClasses}}
|
||||
{{> sidebarClasses}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div id="optionsContainer" style="margin-right:{{optionsStatus}};background-color:{{divColor 'sidebar'}}">
|
||||
@ -152,4 +155,4 @@
|
||||
<span class="cWorkDate">{{dueDate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@ -449,11 +449,12 @@ Meteor.methods({
|
||||
found !== null &&
|
||||
pass === found.code &&
|
||||
prof.classes.indexOf(change) === -1) {
|
||||
foundsubs = found.subscribers + '';
|
||||
classes.update({
|
||||
_id: found._id
|
||||
}, {
|
||||
$set: {
|
||||
subscribers: found.subscribers.concat(Meteor.userId())
|
||||
subscribers: foundsubs.concat(Meteor.userId())
|
||||
}
|
||||
});
|
||||
var current = Meteor.user().profile;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user