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: d3a3108b0ecaa9073e388558edbcbae40dc3536f
4
- data.tar.gz: 18bf039bcc2cb64a8d9e39b0e17433a72adb4398
3
+ metadata.gz: 13d1ed9ded9f1a4890e8ff750e88aec8c456b788
4
+ data.tar.gz: c6c1073e1c26c3cca947d4c1c465b57a2862dbb9
5
5
  SHA512:
6
- metadata.gz: f4a802048fa97507586f812a2bfccfcc81452b26d77ac9ae8581683e6447819d23ee5f034fe2f5008c90222edf62ba5a96da6b03e9ad06d3f20e56c2c9b2d1df
7
- data.tar.gz: ebf9aef982ab4cd23da324f0419fc080beb5b01791bd1188dd951b9ecd97a84283aecf8aef30b4a1e899da054f72c272eefb053ca1624e7b3482e48a28b69ab2
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).next()
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).next()
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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveadminFileInputOnSteroids
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_file_input_on_steroids
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Schvartz