File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments