This repository was archived by the owner on May 25, 2023. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 626
626
this . _on ( fileUploadButtonBar . find ( '.start' ) , {
627
627
click : function ( e ) {
628
628
e . preventDefault ( ) ;
629
- filesList . find ( '.start' ) . click ( ) ;
629
+ filesList . find ( '.start' ) . trigger ( 'click' ) ;
630
630
}
631
631
} ) ;
632
632
this . _on ( fileUploadButtonBar . find ( '.cancel' ) , {
633
633
click : function ( e ) {
634
634
e . preventDefault ( ) ;
635
- filesList . find ( '.cancel' ) . click ( ) ;
635
+ filesList . find ( '.cancel' ) . trigger ( 'click' ) ;
636
636
}
637
637
} ) ;
638
638
this . _on ( fileUploadButtonBar . find ( '.delete' ) , {
642
642
. find ( '.toggle:checked' )
643
643
. closest ( '.template-download' )
644
644
. find ( '.delete' )
645
- . click ( ) ;
645
+ . trigger ( 'click' ) ;
646
646
fileUploadButtonBar . find ( '.toggle' ) . prop ( 'checked' , false ) ;
647
647
}
648
648
} ) ;
Original file line number Diff line number Diff line change 1177
1177
// If the fileInput had focus before it was detached,
1178
1178
// restore focus to the inputClone.
1179
1179
if ( restoreFocus ) {
1180
- inputClone . focus ( ) ;
1180
+ inputClone . trigger ( 'focus' ) ;
1181
1181
}
1182
1182
// Avoid memory leaks with the detached file input:
1183
1183
$ . cleanData ( input . off ( 'remove' ) ) ;
You can’t perform that action at this time.
0 commit comments