File tree 4 files changed +19
-13
lines changed
4 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 34
34
padding-bottom : 10px ;
35
35
}
36
36
}
37
+
38
+ // fix blueimp jQuery-File-Upload display problems under Bootstrap 4+
39
+ // found here: https://stackoverflow.com/a/48162651
40
+ .fade.in {
41
+ opacity : 1
42
+ }
Original file line number Diff line number Diff line change 1
1
<!-- The template to display files available for upload -->
2
- <% fade_class_if_not_test = Rails . env . test? ? 'show ' : 'fade show ' %>
2
+ <% fade_class_if_not_test = Rails . env . test? ? '' : 'fade' %>
3
3
< script id ="template-upload " type ="text/x-tmpl ">
4
4
{ % for ( var i = 0 , file ; file = o . files [ i ] ; i ++ ) { % }
5
5
< tr class = "template-upload <%= fade_class_if_not_test %> " >
6
- < span >
6
+ < td >
7
7
< span class = "preview" > </ span >
8
- </ span >
9
- < span >
8
+ </ td >
9
+ < td >
10
10
< p class = "name" > { %= file . name % } </ p >
11
11
< strong class = "error text-danger" > </ strong >
12
- </ span >
13
- < span >
12
+ </ td >
13
+ < td >
14
14
< p class = "size" > Processing...</ p >
15
15
< div class = "progress" role = "progressbar" aria-valuemin = "0" aria-valuemax = "100" aria-valuenow = "0" > < div class = "progress-bar progress-bar-striped progress-bar-animated bg-success" style = "width:0%;" > </ div > </ div >
16
- </ span >
17
- < span class = "text-right" >
16
+ </ td >
17
+ < td class = "text-right" >
18
18
{ % if ( ! i && ! o . options . autoUpload ) { % }
19
19
< button class = "btn btn-primary start" disabled >
20
20
< span class = "fa fa-upload" > </ span >
27
27
< span > <%= t ( 'helpers.action.cancel' ) %> </ span >
28
28
</ button >
29
29
{ % } %}
30
- </ span >
30
+ </ td >
31
31
</ tr >
32
32
{ % } % }
33
33
</ script >
Original file line number Diff line number Diff line change 1
1
<!-- The template to display files available for upload -->
2
2
< script id ="template-upload " type ="text/x-tmpl ">
3
3
{ % for ( var i = 0 , file ; file = o . files [ i ] ; i ++ ) { % }
4
- < tr class = "template-upload fade show " >
4
+ < tr class = "template-upload fade" >
5
5
< td >
6
6
< span class = "preview" > </ span >
7
7
</ td >
37
37
<!-- The template to display the banner once upload is complete -->
38
38
< script id ="template-download " type ="text/x-tmpl ">
39
39
{ % for ( var i = 0 , file ; file = o . files [ i ] ; i ++ ) { % }
40
- < span class = "template-download fade show " >
40
+ < span class = "template-download fade" >
41
41
< div id = "banner" >
42
42
< div class = "row branding-banner-row" >
43
43
< div class = "col-sm-3" >
69
69
<!-- The template to display logo in the table once upload is complete -->
70
70
< script id ="logo-template-download " type ="text/x-tmpl ">
71
71
{ % for ( var i = 0 , file ; file = o . files [ i ] ; i ++ ) { % }
72
- < span class = "template-download fade show " >
72
+ < span class = "template-download fade" >
73
73
< div class = "row branding-logo-row" >
74
74
< div class = "col-sm-3" >
75
75
< span class = "preview" >
Original file line number Diff line number Diff line change 1
1
<!-- The template to display files available for upload -->
2
- <% fade_class_if_not_test = Rails . env . test? ? 'show ' : 'fade show ' %>
2
+ <% fade_class_if_not_test = Rails . env . test? ? '' : 'fade' %>
3
3
< script id ="versioning-template-upload " type ="text/x-tmpl ">
4
4
{ % for ( var i = 0 , file ; file = o . files [ i ] ; i ++ ) { % }
5
5
< tr class = "template-upload <%= fade_class_if_not_test %> " >
You can’t perform that action at this time.
0 commit comments