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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 490e27c439d357126868f80db8bd1bbfc85740e9
4
- data.tar.gz: 9f6e2e4976f9131a09da5cc654db4d04c4207ca3
3
+ metadata.gz: 958b1b1542a35904790cebea4d08d4b7df0a41ea
4
+ data.tar.gz: 93a4ff922e3082ad834bb98248d24f98bdd58b23
5
5
  SHA512:
6
- metadata.gz: 12d99f1fd4d635277f47c936ca0c75c7918e12af1ed4e3c4a801552003afc5413362e1c5278b920d8b3fabdb98d2ca8895a322b2e874e8e1b56c09b8efafccf8
7
- data.tar.gz: 78f92b59ce750f85a9afe9af2fbe166ababd2d42668c28be1071dc61413d8655e4a351596daa1ad8e8b070db57c68299427ddbb5ee362743dba63b1b9302e878
6
+ metadata.gz: 0a7b8e2e2420951ea719a3da56cd5bf2efc2588918ea920258e2347b4be1233a10247e82e4de9f6fb56bade0662c0087ac139dc3dd41f17ae560eaa567f20ef1
7
+ data.tar.gz: f765aec4862be9afaf02e960bca3a62c6c660467720464b5bf7933f9ecf2e84cf8487d6274e011bffa2d47a44b28a159c726fa0411fc4275f2ab0e68dad4c805
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.10.2 - 2015-04-30
4
+ Bug fixes:
5
+ - Fixes preview of newly uploaded files in IE
6
+
7
+ ### 0.10.1 - 2015-02-05
8
+ Bug fixes:
9
+ - Fixes bundler errors on recent versions of godmin
10
+
3
11
  ### 0.10.0 - 2015-06-25
4
12
  Features
5
13
  - New look
@@ -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 + "/image");
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 + "/image");
97
+ "href", fileObject.url + "/" + fileObject.id + "/" + fileObject.filename);
97
98
  };
98
99
 
99
100
  var getFileObject = function($el) {
@@ -1,5 +1,5 @@
1
1
  module Godmin
2
2
  module Uploads
3
- VERSION = "0.10.1"
3
+ VERSION = "0.10.2"
4
4
  end
5
5
  end
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.1
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-02-05 00:00:00.000000000 Z
12
+ date: 2016-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: godmin