Skip to content

Commit

Permalink
Semantic UI Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Max committed Aug 21, 2015
1 parent be321fa commit 4b897a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cfs-autoform.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template name="cfsFileField_bootstrap3">
<template name="cfsFileField_semanticUI">
<input type="file" class="cfsaf-hidden" data-cfs-collection="{{this.atts.collection}}" {{fileInputAtts}}>
<input type="text" readonly {{textInputAtts}}>
</template>

<template name="cfsFilesField_bootstrap3">
<template name="cfsFilesField_semanticUI">
<input type="file" class="cfsaf-hidden" multiple data-cfs-collection="{{this.atts.collection}}" {{fileInputAtts}}>
<input type="text" readonly {{textInputAtts}}>
</template>
12 changes: 6 additions & 6 deletions cfs-autoform.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ if (Meteor.isClient) {
return {'data-schema-key': this.atts["data-schema-key"]};
}

Template.cfsFileField_bootstrap3.helpers({
Template.cfsFileField_semanticUI.helpers({
textInputAtts: textInputAtts,
fileInputAtts: fileInputAtts
});

Template.cfsFilesField_bootstrap3.helpers({
Template.cfsFilesField_semanticUI.helpers({
textInputAtts: textInputAtts,
fileInputAtts: fileInputAtts
});

var hookTracking = {};
Template.cfsFileField_bootstrap3.rendered =
Template.cfsFilesField_bootstrap3.rendered = function () {
Template.cfsFileField_semanticUI.rendered =
Template.cfsFilesField_semanticUI.rendered = function () {
var formId;

// backwards compatibility with pre 5.0 autoform
Expand Down Expand Up @@ -93,7 +93,7 @@ if (Meteor.isClient) {
template.$('.cfsaf-hidden').data("cfsaf_files", fileList);
};

Template.cfsFileField_bootstrap3.events({
Template.cfsFileField_semanticUI.events({
'click .cfsaf-field': function (event, template) {
template.$('.cfsaf-hidden').click();
},
Expand Down Expand Up @@ -122,7 +122,7 @@ if (Meteor.isClient) {
template.$('.cfsaf-field').val(fullNameList.join(", "));
};

Template.cfsFilesField_bootstrap3.events({
Template.cfsFilesField_semanticUI.events({
'click .cfsaf-field': function (event, template) {
template.$('.cfsaf-hidden').click();
},
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package.describe({
name: "cfs:autoform",
name: "macmacs:cfsautoform",
version: "2.2.1",
summary: "Upload files as part of autoform submission",
git: "https://github.com/aldeed/meteor-cfs-autoform.git"
Expand Down

0 comments on commit 4b897a1

Please sign in to comment.