activeadmin_file_input_on_steroids 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13d1ed9ded9f1a4890e8ff750e88aec8c456b788
|
4
|
+
data.tar.gz: c6c1073e1c26c3cca947d4c1c465b57a2862dbb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a40ea40bb38fa815a57692d2809a877a4f6761f79d9b2518e3621d842f7d26a0afc6924da5f8691ce0237b93254b901e2684b0cefc437f046390db80820396dd
|
7
|
+
data.tar.gz: 5af06e7ac4791111ba96a409cb3c0e975b093ce25c25f764544364fa06750d0255d31ca4f3936cbbcca47a184aa93415edef649960161f0954baaae46737f6a6
|
@@ -4,7 +4,7 @@ root.delay = (ms, func) -> setTimeout func, ms
|
|
4
4
|
|
5
5
|
$ ->
|
6
6
|
$('.image-preview').parents('li:first').find('input[type="file"]').change ->
|
7
|
-
readURL this, $(this).
|
7
|
+
readURL this, $(this).parents('li:first').find('.image-preview')
|
8
8
|
|
9
9
|
has_many_click $('.button.has_many_add')
|
10
10
|
|
@@ -13,7 +13,7 @@ has_many_click = (elems) ->
|
|
13
13
|
$this = $(this)
|
14
14
|
root.delay 10, ->
|
15
15
|
$this.prev().find('.image-preview').parents('li:first').find('input[type="file"]').change ->
|
16
|
-
readURL this, $(this).
|
16
|
+
readURL this, $(this).parents('li:first').find('.image-preview')
|
17
17
|
has_many_click $this.find('.button.has_many_add')
|
18
18
|
|
19
19
|
|