diff --git a/.meteor/packages b/.meteor/packages index ab92733..b41d700 100644 --- a/.meteor/packages +++ b/.meteor/packages @@ -18,7 +18,6 @@ es5-shim@4.6.15 # ECMAScript 5 compatibility for older browsers. ecmascript@0.6.3 # Enable ECMAScript2015+ syntax in app code shell-server@0.2.2 # Server-side component of the `meteor shell` command -insecure@1.0.7 # Allow all DB writes from clients (for prototyping) iron:router npm-bcrypt@0.9.2 stylus@2.513.9 diff --git a/.meteor/versions b/.meteor/versions index 628d531..dd93ea8 100644 --- a/.meteor/versions +++ b/.meteor/versions @@ -37,7 +37,6 @@ htmljs@1.0.11 http@1.2.11 ian:accounts-ui-bootstrap-3@1.2.89 id-map@1.0.9 -insecure@1.0.7 iron:controller@1.0.12 iron:core@1.0.11 iron:dynamic-template@1.0.12 diff --git a/client/buildSessions/build_list.js b/client/buildSessions/build_list.js index 6c3d5e0..5e61304 100644 --- a/client/buildSessions/build_list.js +++ b/client/buildSessions/build_list.js @@ -65,8 +65,8 @@ Template.buildSessionList.events({ //if you click on a person 'click li': function() { if(Roles.userIsInRole(Meteor.userId(), ['admin'])) { - if(this.isAbsent) BuildSessions.update({_id: this.sessionid}, {$pull: {absent: this._id}}); - else BuildSessions.update({_id: this.sessionid}, {$addToSet: {absent: this._id}}); + if(this.isAbsent) Meteor.call('adminNotTardy', {sessionId: this.sessionid, userId: this._id}); + else Meteor.call('adminTardy', {sessionId: this.sessionid, userId: this._id}); } }, 'click .not-coming': function(e) { @@ -74,17 +74,12 @@ Template.buildSessionList.events({ //convert the startime to 24 hour time, make a duration out of that, add it to the start date. // var eventstart = moment(this.date.date).add(moment.duration(moment(this.starttime, ["h:mm A"]).format("HH:mm"))); - - if(moment(this.start).diff(moment(), 'hours')