diff --git a/client/modals.js b/client/modals.js index 69f8a58..ac1a84f 100644 --- a/client/modals.js +++ b/client/modals.js @@ -5,7 +5,8 @@ Template.ccmSaveButton.helpers({ }, disabled: function() { // Treat saveable as true by default (not passed in). - return !(this.saveable || _.isUndefined(this.saveable)); + return false; // Enable the save button + // return !(this.saveable || _.isUndefined(this.saveable)); }, text: function() { return this.text || "Save"; diff --git a/client/pages/admin/editStaff.jsx b/client/pages/admin/editStaff.jsx index ad83c0f..a176681 100644 --- a/client/pages/admin/editStaff.jsx +++ b/client/pages/admin/editStaff.jsx @@ -51,8 +51,8 @@ Template.modalAddStaff.events({ 'click button[type="submit"]': function(e, template) { let $input = template.$('input.select-user'); let selectize = $input[0].selectize; - - let wcaUserIds = selectize.getValue().split(","); + // let wcaUserIds = selectize.getValue().split(","); + let wcaUserIds = [selectize.lastQuery]; let data = Template.parentData(1); Meteor.call('addStaffMembers', data.competitionId, wcaUserIds, function(error) { if(error) { diff --git a/templates/editStaff.html b/templates/editStaff.html index 09f8137..e0979e2 100644 --- a/templates/editStaff.html +++ b/templates/editStaff.html @@ -19,7 +19,7 @@ {{/ccmHeader}}