diff options
Diffstat (limited to 'vendor/blueimp/jquery-file-upload/index.html')
-rw-r--r-- | vendor/blueimp/jquery-file-upload/index.html | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/vendor/blueimp/jquery-file-upload/index.html b/vendor/blueimp/jquery-file-upload/index.html index 62033e764..996b390d1 100644 --- a/vendor/blueimp/jquery-file-upload/index.html +++ b/vendor/blueimp/jquery-file-upload/index.html @@ -213,14 +213,12 @@ <!-- The template to display files available for upload --> <script id="template-upload" type="text/x-tmpl"> {% for (var i=0, file; file=o.files[i]; i++) { %} - <tr class="template-upload fade"> + <tr class="template-upload fade{%=o.options.loadImageFileTypes.test(file.type)?' image':''%}"> <td> <span class="preview"></span> </td> <td> - {% if (window.innerWidth > 480 || !o.options.loadImageFileTypes.test(file.type)) { %} - <p class="name">{%=file.name%}</p> - {% } %} + <p class="name">{%=file.name%}</p> <strong class="error text-danger"></strong> </td> <td> @@ -253,7 +251,7 @@ <!-- The template to display files available for download --> <script id="template-download" type="text/x-tmpl"> {% for (var i=0, file; file=o.files[i]; i++) { %} - <tr class="template-download fade"> + <tr class="template-download fade{%=file.thumbnailUrl?' image':''%}"> <td> <span class="preview"> {% if (file.thumbnailUrl) { %} @@ -262,15 +260,13 @@ </span> </td> <td> - {% if (window.innerWidth > 480 || !file.thumbnailUrl) { %} - <p class="name"> - {% if (file.url) { %} - <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a> - {% } else { %} - <span>{%=file.name%}</span> - {% } %} - </p> - {% } %} + <p class="name"> + {% if (file.url) { %} + <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a> + {% } else { %} + <span>{%=file.name%}</span> + {% } %} + </p> {% if (file.error) { %} <div><span class="label label-danger">Error</span> {%=file.error%}</div> {% } %} @@ -296,8 +292,8 @@ {% } %} </script> <script - src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js" - integrity="sha384-vk5WoKIaW/vJyUAd9n/wmopsmNhiy+L2Z+SBxGYnUkunIxVxAv/UtMOhba/xskxh" + src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" + integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous" ></script> <!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included --> |