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