attache-rails 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/javascripts/attache.js +1 -1
- data/lib/attache/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5042c7589e9875e183391c475ea3b4d6970e19ac
|
|
4
|
+
data.tar.gz: 3e37a79cafd9a14b88ca67891d3a5c5908e56cc8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42609278d232413d8b0ee468a83bc7b4e06e881e8ec3e39df8f65f1d3632642fd8a8a96d9aff3b97469d81491a1ff0f4ae4b012824f8295471994b1f1db4f44b
|
|
7
|
+
data.tar.gz: 0eb74392cf3b3c32637bb3815ffff93e20d645d13e447c5ce7ba6f48e11ba577db44fc38570127278bcb9b75eb40595fce4dce19251c07b4dbf1d365b10f82b5
|
data/README.md
CHANGED
|
@@ -55,10 +55,10 @@ If you want to customize the file upload look and feel, define your own React `<
|
|
|
55
55
|
//= require attache
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
The `
|
|
58
|
+
The `attache_file_input.AttacheFileInput` idempotent function is setup to find all the elements with `enable-attache` css class and upgrade them to use the direct upload & preview javascript. If you wish to re-run this function any other time, e.g. hookup the `cocoon:after-insert` event, you may
|
|
59
59
|
|
|
60
60
|
``` javascript
|
|
61
|
-
$(document).on('cocoon:after-insert',
|
|
61
|
+
$(document).on('cocoon:after-insert', attache_file_input.AttacheFileInput);
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
|
|
@@ -44,7 +44,7 @@ var upgradeFileInput = exports.upgradeFileInput = function upgradeFileInput() {
|
|
|
44
44
|
|
|
45
45
|
window.attache_cors_upload = { CORSUpload: _cors_upload.CORSUpload };
|
|
46
46
|
window.attache_bootstrap3 = { Bootstrap3Header: _bootstrap.Bootstrap3Header, Bootstrap3FilePreview: _bootstrap.Bootstrap3FilePreview, Bootstrap3Placeholder: _bootstrap.Bootstrap3Placeholder };
|
|
47
|
-
window.attache_file_input = { AttacheFileInput: _file_input.AttacheFileInput };
|
|
47
|
+
window.attache_file_input = { AttacheFileInput: _file_input.AttacheFileInput, upgradeFileInput: upgradeFileInput };
|
|
48
48
|
$(document).on('page:change turbolinks:load', upgradeFileInput);
|
|
49
49
|
$(upgradeFileInput);
|
|
50
50
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: attache-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- choonkeat
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
150
150
|
version: '0'
|
|
151
151
|
requirements: []
|
|
152
152
|
rubyforge_project:
|
|
153
|
-
rubygems_version: 2.
|
|
153
|
+
rubygems_version: 2.5.1
|
|
154
154
|
signing_key:
|
|
155
155
|
specification_version: 4
|
|
156
156
|
summary: Client lib to use attache server
|