Skip to content

Commit 8a9d7db

Browse files
author
Bastien ADAM
committed
AutoForm.getValidationContext().resetValidation(); to AutoForm.getValidationContext().reset();
1 parent 2f83e0a commit 8a9d7db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/client/fileUpload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ Template.afFileUpload.events({
6868
}, false);
6969

7070
upload.on('start', function () {
71-
AutoForm.getValidationContext().resetValidation();
71+
AutoForm.getValidationContext().reset();
7272
template.currentUpload.set(this);
7373
return;
7474
});
7575

7676
upload.on('error', function (error) {
77-
AutoForm.getValidationContext().resetValidation();
77+
AutoForm.getValidationContext().reset();
7878
AutoForm.getValidationContext().addInvalidKeys([{name: Template.instance().inputName, type: 'uploadError', value: error.reason}]);
7979
$(e.currentTarget).val('');
8080
return;

package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package.describe({
22
name: 'ostrio:autoform-files',
33
summary: 'File upload for AutoForm using ostrio:files',
44
description: 'File upload for AutoForm using ostrio:files',
5-
version: '2.0.0',
5+
version: '2.0.1',
66
git: 'https://github.com/VeliovGroup/meteor-autoform-file.git'
77
});
88

0 commit comments

Comments
 (0)