uploadbox 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/uploadbox/images/_uploader.html.slim +2 -2
- data/lib/uploadbox/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: dd2d26ea7a6f565a452fd772626c1919ee846709
|
4
|
+
data.tar.gz: abc178d5d852c2575c452184596402737065e63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d125cda1a974a2cd6ca5c5670106b4bb75f00457c69f7f5f9690e7c7a8577f2f80981bbc9a9487e952998b82d8a66ca0267b423b152b2a179a6c2f1dcb21fdac
|
7
|
+
data.tar.gz: 9e9eb602502dcd5d0bda6d9b5fecc73029234870ac39dc92ff4a1b0ca2a90c250e13c5a865878bee23d1f5178d57f7d14139c3509d3dd6a9597e6f6ec7809542
|
@@ -1,9 +1,9 @@
|
|
1
1
|
= form.fields_for :image do
|
2
2
|
.uploadbox-image-uploader data-component="ImageUploader"
|
3
3
|
- if namespace
|
4
|
-
input name="[#{namespace}]#{upload_name}_id" data-item="id" type="hidden"
|
4
|
+
input name="[#{namespace}]#{upload_name}_id" data-item="id" type="hidden" value="#{resource.send(upload_name).try :id}"
|
5
5
|
- else
|
6
|
-
input name="#{upload_name}_id" data-item="id" type="hidden"
|
6
|
+
input name="#{upload_name}_id" data-item="id" type="hidden" value="#{resource.send(upload_name).try :id}"
|
7
7
|
.fileupload data-provides="fileupload" class="fileupload-#{(resource.send(upload_name).present? or default) ? 'exists' : 'new'}"
|
8
8
|
.fileupload-preview.thumbnail data-version="#{version}" data-width="#{width}" data-height="#{height}" style="width: #{width}px; height: #{height}px;"
|
9
9
|
- if resource.send(upload_name).present?
|
data/lib/uploadbox/version.rb
CHANGED