Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion client/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions client/pages/admin/editStaff.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion templates/editStaff.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{/ccmHeader}}
<div class="modal-body">
<div class="input-group">
<input class="form-control select-user" placeholder="Search for staff" />
<input class="form-control select-user" placeholder="Enter staff member WCA ID" />
<span class="input-group-btn">
{{> ccmSaveButton saveable=saveable text="Add"}}
</span>
Expand Down