Changed Appreciation to Jr High Summer; Fixed sorting of internships such that changes get properly sorted; Added a proper date on news & notices on the home page using the page's update timestamp.

This commit is contained in:
Wynne Crisman
2019-01-07 16:53:54 -08:00
parent 0593c2421a
commit cac2ad9c41
21 changed files with 160 additions and 109 deletions

View File

@@ -144,7 +144,6 @@ Template.UserEditor.events({
let roles = [];
user.username = template.$('input[name="username"]').val();
user.email = template.$('input[name="email"]').val();
let roleSpans = template.$('.role.selected');
for(let i = 0; i < roleSpans.length; i++) {
@@ -154,6 +153,7 @@ Template.UserEditor.events({
user.roles = roles;
if(Session.get(PREFIX + 'displayNewUser')) {
user.email = template.$('input[name="email"]').val();
Meteor.call('insertUser', user, function(error, result) {
if(error) {
sAlert.error(error);
@@ -166,6 +166,7 @@ Template.UserEditor.events({
});
}
else {
user.emails = [{address: template.$('input[name="email"]').val(), verified: true}]; //Since this is through the admin console we will assume the address is verified.
user._id = this._id;
Meteor.call("updateUser", user, function(error, result) {
if(error) sAlert.error(error);