lol_multiple_uploads 1.2.2 → 1.2.3

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: 6c5650e82217e5c08b044463b9c54f689384d6e1
4
- data.tar.gz: 0a29ec3a4809287ea4e288a8e757f3a6911f0c4e
3
+ metadata.gz: 71df92e8a3adf10e8d7b88ee9b26e18c976ae960
4
+ data.tar.gz: 7f1b9c1430ebfe2f148dc10216a919cad5cda6a0
5
5
  SHA512:
6
- metadata.gz: c753f3349457e2e9892f1633db90185baf5fbd69e950c16ac31097acf7da0c4b27c0f6206e3e745139ce0646bdc293f465ffb5850cec3e65392d8576e1c7473f
7
- data.tar.gz: 8deac0c34293b2e54e2164ad6e1568a4233e7089e680282653cab7bd67649e2f891fa4c1251e3c7e8ad3c73f989717244c677c1e6dc0936c90a568cf2b67b55f
6
+ metadata.gz: 61b278d183818fd9e1cebe4c44fcfa840332ce1a7ec528769860d8a02056b87ecf3034678e994a7b085d9bfcb23abee2f77e3ea0cbf639b2efe82571134c819d
7
+ data.tar.gz: 70418c7517ff25da069fe5e583f27c45e5d7bb60e020de8b53f68c1002b339bdd9c4abad6129197da4fc218ae5d3e05b33d66b1c1a1e4ebf037a58a1bb335eb7
@@ -15,7 +15,7 @@ var imageContainerManager = function(){
15
15
  this.hasCaption = Boolean(this.$container.data('has-caption'));
16
16
 
17
17
  this.startup = function(){
18
- this.$container.on('click', 'figure a', function(event) {
18
+ this.$container.on('click', 'figure a.delete', function(event) {
19
19
  _this.removeImage($(this));
20
20
  return false;
21
21
  });
@@ -55,7 +55,7 @@ var imageCaptionManager = function($container){
55
55
  _this.$container = $container;
56
56
 
57
57
  this.startup = function(){
58
- this.$container.on('focusout', 'figure input:text', function(event) {
58
+ this.$container.on('focusout', 'figure textarea', function(event) {
59
59
  event.preventDefault();
60
60
  var field = $(this);
61
61
  _this.updateImageCaption(field.val(), field.closest('figure').data('id'));
@@ -18,12 +18,12 @@
18
18
  cursor: move;
19
19
  }
20
20
 
21
- .lol-multiple-uploads.images-container figure img{
21
+ .lol-multiple-uploads.images-container figure > img{
22
22
  height: 120px;
23
23
  width: 120px;
24
24
  }
25
25
 
26
- .lol-multiple-uploads.images-container figure a{
26
+ .lol-multiple-uploads.images-container figure a.delete{
27
27
  position: absolute;
28
28
  top: 94px;
29
29
  left: -120px;
@@ -42,7 +42,7 @@
42
42
  transition: all 200ms ease-in-out;
43
43
  }
44
44
 
45
- .lol-multiple-uploads.images-container figure:hover a{
45
+ .lol-multiple-uploads.images-container figure:hover a.delete{
46
46
  left: 0px;
47
47
  -webkit-transition: all 200ms ease-in-out;
48
48
  -moz-transition: all 200ms ease-in-out;
@@ -51,11 +51,22 @@
51
51
  transition: all 200ms ease-in-out;
52
52
  }
53
53
 
54
+ .lol-multiple-uploads.images-container figure a.maximize{
55
+ position: absolute;
56
+ top: 1px;
57
+ right: 1px;
58
+ visibility: hidden;
59
+ }
60
+
61
+ .lol-multiple-uploads.images-container figure:hover a.maximize{
62
+ visibility: visible;
63
+ }
64
+
54
65
  .lol-multiple-uploads.images-container img{
55
66
  max-width: 100%;
56
67
  }
57
68
 
58
- .lol-multiple-uploads.images-container[data-has-caption="true"] figure input[type='text']{
69
+ .lol-multiple-uploads.images-container[data-has-caption="true"] figure textarea{
59
70
  border: 1px solid #cacaca;
60
- width: 116px;
71
+ width: 114px;
61
72
  }
@@ -1,3 +1,3 @@
1
1
  <%= form_for photo, url: update_image_path(photo) do |f|%>
2
- <%= f.text_field :caption, placeholder: 'pt-BR' %>
2
+ <%= f.text_area :caption, placeholder: 'pt-BR', rows: 3 %>
3
3
  <% end %>
@@ -1,5 +1,6 @@
1
1
  <figure data-id="<%= photo.id %>">
2
2
  <%= image_tag(photo.image.send(photo_version).url)%>
3
- <%= link_to "Remover", remove_image_path(photo, format: 'json'), method: :delete %>
3
+ <%= link_to "Remover", remove_image_path(photo, format: 'json'), method: :delete, class: :delete%>
4
+ <%= link_to image_tag('lol_multiple_uploads/maximize.png'), photo.image.url, class: 'maximize', target: :blank %>
4
5
  <%= render partial: '/layouts/lol_multiple_uploads/photo-caption', locals: {photo: photo} if photo.has_caption? %>
5
6
  </figure>
@@ -1,3 +1,3 @@
1
1
  module LolMultipleUploads
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lol_multiple_uploads
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Zaghi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-05 00:00:00.000000000 Z
11
+ date: 2013-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -103,6 +103,7 @@ extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
105
  - app/assets/images/lol_multiple_uploads/loading.gif
106
+ - app/assets/images/lol_multiple_uploads/maximize.png
106
107
  - app/assets/javascripts/lol_multiple_uploads/upload.js
107
108
  - app/assets/stylesheets/lol_multiple_uploads/base.css
108
109
  - app/controllers/photos_controller.rb