Skip to content
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
4 changes: 2 additions & 2 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'eoliphant:autoform-semantic-ui',
version: '0.9.9',
version: '1.0.0',
// Brief, one-line summary of the package.
summary: 'Semantic-ui template for aldeed:autoform package.',
// URL to the Git repository containing the source code for this package.
Expand All @@ -15,7 +15,7 @@ Package.onUse(function(api) {

api.use(['ecmascript', 'templating', 'underscore', 'jquery'], 'client');

api.use('aldeed:autoform@5.8.1', 'client');
api.use('aldeed:autoform@6.0.0', 'client');

api.use('aldeed:[email protected]','client');

Expand Down
4 changes: 2 additions & 2 deletions templates/semantic-ui/components/quickForm/quickForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Template.quickForm_semanticUI.helpers({
}

// if SimpleSchema.defaultLabel is defined, use it
if (typeof SimpleSchema.defaultLabel === "function") {
return SimpleSchema.defaultLabel(name);
if (AutoForm.SimpleSchema && typeof AutoForm.SimpleSchema.defaultLabel === "function") {
return AutoForm.SimpleSchema.defaultLabel(name);
} else {
// else, just capitalise name
return name.charAt(0).toUpperCase() + name.slice(1);
Expand Down