rails_admin_dropzone_rails_6 1.0.0 → 1.0.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 753171db75894bcd8045ee561987ff540562e89491e43067578952764aa30793
|
4
|
+
data.tar.gz: 5542fd14aa30c13713423c8d2799e8e9ef83cd09f1c51aeeeeb9ec12d261122f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efe2285a7924b0dd6ef3b9f4e0c4870d83575a05f3bb6c67d75c2bae5225c2f586e6130b2fc8ca39731d3bd002701d92fdf36c347529eba7cfb5a85622cc63dd
|
7
|
+
data.tar.gz: 58bbd4335846e086c075a5c0b5052a7d621638213cefae6b1d6eb136d43542f6f7cdc885fb53704ae7737320067411390dbf2348b5fb7bc489e2ac4cf31b9841
|
@@ -4,8 +4,8 @@
|
|
4
4
|
:javascript
|
5
5
|
$(document).on('rails_admin.dom_ready', function() {
|
6
6
|
// disable auto discover
|
7
|
-
Dropzone.autoDiscover =
|
8
|
-
if ($(".dropzone").length){
|
7
|
+
Dropzone.autoDiscover = false;
|
8
|
+
if ($(".dropzone").length && !Dropzone.instances.length){
|
9
9
|
var dropzone = new Dropzone (".dropzone", {
|
10
10
|
maxFilesize: 256, // Set the maximum file size to 256 MB
|
11
11
|
paramName: "#{@object.class.to_s.downcase}[second_attr][]", // Rails expects the file upload to be something like model[field_name]
|