active_admin_modal_upload 0.0.2 → 0.0.5
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: 4b80bfe825636665d4860ad1a1b6a1a16ea0b9f8
|
4
|
+
data.tar.gz: cdd474a07ea13206a8b5a5f4f1997a9737d5d63a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 253913c2f8f38627de103b1eaf7c63fec45134c3ed464e3152f87afb4612373e624903784de89aef232bdcb5028a362c11de508ec982b7bee0f0e8c91b0db858
|
7
|
+
data.tar.gz: 10a17bd69deb27fabf511e141049b1d810e5174dff6b45b578927ca4dc5d44c7aa1d12bcf8d70c537f9f342ca8089173630be21f782e90851e39b1fd67449e66
|
Binary file
|
@@ -30,5 +30,51 @@
|
|
30
30
|
width: 30%;
|
31
31
|
overflow-y: scroll;
|
32
32
|
overflow-x: hidden;
|
33
|
+
position: relative;
|
33
34
|
|
35
|
+
#all-uploads-complete {
|
36
|
+
margin: 30px;
|
37
|
+
position: absolute;
|
38
|
+
width: 100%;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.close-this-modal {
|
43
|
+
text-align: center;
|
44
|
+
display: block;
|
45
|
+
position: relative;
|
46
|
+
margin-top: 20px;
|
47
|
+
margin-right: auto;
|
48
|
+
margin-left: auto;
|
49
|
+
text-decoration: none !important;
|
50
|
+
padding: 10px 15px;
|
51
|
+
background: #4479BA;
|
52
|
+
color: #FFF !important;
|
53
|
+
-webkit-border-radius: 4px;
|
54
|
+
-moz-border-radius: 4px;
|
55
|
+
border-radius: 4px;
|
56
|
+
border: solid 1px #20538D;
|
57
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
|
58
|
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
|
59
|
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
|
60
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
|
61
|
+
-webkit-transition-duration: 0.2s;
|
62
|
+
-moz-transition-duration: 0.2s;
|
63
|
+
transition-duration: 0.2s;
|
64
|
+
-webkit-user-select:none;
|
65
|
+
-moz-user-select:none;
|
66
|
+
-ms-user-select:none;
|
67
|
+
user-select:none;
|
68
|
+
}
|
69
|
+
.close-this-modal:hover {
|
70
|
+
background: #356094;
|
71
|
+
border: solid 1px #2A4E77;
|
72
|
+
text-decoration: none;
|
73
|
+
}
|
74
|
+
.close-this-modal:active {
|
75
|
+
-webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
|
76
|
+
-moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
|
77
|
+
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
|
78
|
+
background: #2E5481;
|
79
|
+
border: solid 1px #203E5F;
|
34
80
|
}
|
@@ -28,6 +28,7 @@ class ModalUploadInput
|
|
28
28
|
modal_window_id = "#{resource}-#{association}-uploader-window"
|
29
29
|
'<div id="' + modal_window_id + '" class="modal-window-visible" style="display: none;">' +
|
30
30
|
upload_form +
|
31
|
+
close_modal_button +
|
31
32
|
'</div>'
|
32
33
|
end
|
33
34
|
|
@@ -37,6 +38,10 @@ class ModalUploadInput
|
|
37
38
|
end
|
38
39
|
end
|
39
40
|
|
41
|
+
def close_modal_button
|
42
|
+
link_to 'Close Window', "", :rel => "modal:close", class: "close-this-modal"
|
43
|
+
end
|
44
|
+
|
40
45
|
def file_previews
|
41
46
|
options[:resource].send(options[:association].to_sym).order("image ASC").each_with_index.map { |file, index|
|
42
47
|
input_name = "#{options[:resource].class.name.downcase}[#{options[:association].underscore}_attributes][#{index}]"
|
@@ -78,7 +83,7 @@ class ModalUploadInput
|
|
78
83
|
insertRemoteInput(content);
|
79
84
|
preview.insertAfter(lastPreview);
|
80
85
|
}).bind('s3_uploads_complete', function(e, data) {
|
81
|
-
var processingMessage = $('<
|
86
|
+
var processingMessage = $('<div id=\"all-uploads-complete\"><h3>Uploads completed.</h3></div>')
|
82
87
|
processingMessage.insertAfter($('#file'));
|
83
88
|
}).on('ajax:success', function(e, data) {
|
84
89
|
insertUploadInputsForPhotographs(JSON.parse(data));
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_modal_upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Norman
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- MIT-LICENSE
|
106
106
|
- README.rdoc
|
107
107
|
- Rakefile
|
108
|
+
- app/assets/images/close.png
|
108
109
|
- app/assets/stylesheets/active_admin_modal_upload.scss
|
109
110
|
- app/models/concerns/active_admin_modal_upload/uploadable.rb
|
110
111
|
- config/routes.rb
|