File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * jQuery File Upload User Interface Plugin 5.0.4
2
+ * jQuery File Upload User Interface Plugin 5.0.5
3
3
* https://github.com/blueimp/jQuery-File-Upload
4
4
*
5
5
* Copyright 2010, Sebastian Tschan
531
531
} ) ;
532
532
} ,
533
533
534
+ _initTemplates : function ( ) {
535
+ // Handle cases where the templates are defined
536
+ // after the widget library has been included:
537
+ if ( this . options . uploadTemplate instanceof $ &&
538
+ ! this . options . uploadTemplate . length ) {
539
+ this . options . uploadTemplate = $ (
540
+ this . options . uploadTemplate . selector
541
+ ) ;
542
+ }
543
+ if ( this . options . downloadTemplate instanceof $ &&
544
+ ! this . options . downloadTemplate . length ) {
545
+ this . options . downloadTemplate = $ (
546
+ this . options . downloadTemplate . selector
547
+ ) ;
548
+ }
549
+ } ,
550
+
534
551
_create : function ( ) {
535
552
$ . blueimp . fileupload . prototype . _create . call ( this ) ;
553
+ this . _initTemplates ( ) ;
536
554
this . element
537
555
. addClass ( 'ui-widget' ) ;
538
556
this . _initFileUploadButtonBar ( ) ;
You can’t perform that action at this time.
0 commit comments