godmin-uploads 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/app/assets/javascripts/godmin-uploads/index.js +3 -2
- data/lib/godmin/uploads/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 958b1b1542a35904790cebea4d08d4b7df0a41ea
|
4
|
+
data.tar.gz: 93a4ff922e3082ad834bb98248d24f98bdd58b23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a7b8e2e2420951ea719a3da56cd5bf2efc2588918ea920258e2347b4be1233a10247e82e4de9f6fb56bade0662c0087ac139dc3dd41f17ae560eaa567f20ef1
|
7
|
+
data.tar.gz: f765aec4862be9afaf02e960bca3a62c6c660467720464b5bf7933f9ecf2e84cf8487d6274e011bffa2d47a44b28a159c726fa0411fc4275f2ab0e68dad4c805
|
data/CHANGELOG.md
CHANGED
@@ -88,12 +88,13 @@
|
|
88
88
|
|
89
89
|
var setUploadPreview = function($el, fileObject) {
|
90
90
|
$el.find(".godmin-uploads__preview__image").attr(
|
91
|
-
"src", fileObject.url + "/fill/0/400/" + fileObject.id + "/
|
91
|
+
"src", fileObject.url + "/fill/0/400/" + fileObject.id + "/" + fileObject.filename);
|
92
92
|
};
|
93
93
|
|
94
94
|
var setDownloadUrl = function($el, fileObject) {
|
95
|
+
ext = fileObject.filename.split(".").pop().toLowerCase();
|
95
96
|
$el.find(".godmin-uploads__preview__download__link").attr(
|
96
|
-
"href", fileObject.url + "/" + fileObject.id + "/
|
97
|
+
"href", fileObject.url + "/" + fileObject.id + "/" + fileObject.filename);
|
97
98
|
};
|
98
99
|
|
99
100
|
var getFileObject = function($el) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: godmin-uploads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Ljungblad
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: godmin
|