glebtv-rails-uploader 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/uploader/default/_container.html.erb +2 -1
- data/lib/uploader/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9423712bd2f3477c062998585b1c69902a4006e2
|
4
|
+
data.tar.gz: 04b3343dc2b53618b2d2d3041b3258594221fdde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09ff2073da321b21b2c800215d766c00901dc43a1aeddd9ed5b5b7d689abcca49f98837bef687b037c786ad4e3a02137ce8ed32a33381431ec3ead2508a8f50c
|
7
|
+
data.tar.gz: 6d7fbae5ae3ba1da07723430362d1d3169c314a375bb66537a8f9fae8dac647e4bd100bea14b7821ecdfcb082ac23742b49ca43e79ce208a2a3e97abd8b35c11
|
@@ -42,8 +42,9 @@
|
|
42
42
|
|
43
43
|
<% if field.exists? -%>
|
44
44
|
uploader = ($(this).data('blueimp-fileupload') || $(this).data('fileupload'));
|
45
|
+
<% fv = field.values.sort_by {|s| s.sort.nil? ? 0 : s.sort }.map(&:to_jq_upload) %>
|
45
46
|
uploader
|
46
|
-
._renderDownload(<%=raw field.
|
47
|
+
._renderDownload(<%=raw (field.multiple? ? fv : fv[0]).to_json %>)
|
47
48
|
.appendTo(container);
|
48
49
|
<% end -%>
|
49
50
|
});
|
data/lib/uploader/version.rb
CHANGED