Permalink
Browse files

heightはautoにまかせちゃっていいと思う

  • Loading branch information...
1 parent edb5915 commit ebf6e173a94c2e08bc5c9bf06f2cebfcf0ccbbe5 @wacky wacky committed May 23, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/assets/javascripts/photos.js
View
3 app/assets/javascripts/photos.js
@@ -75,7 +75,7 @@ function onLoadData(data) {
var tmpl = _.template(
'<li class="imageBox">'
+ '<figure>'
- + '<img class="move" src="<%= filename %>" width="200" height="<%= imageh %>" data-pos="<%= id %>">'
+ + '<img class="move" src="<%= filename %>" width="200" data-pos="<%= id %>">'
+ '<figcaption>'
+ '</figcaption>'
+ '</figure>'
@@ -104,7 +104,6 @@ function onLoadData(data) {
tmpl({
'id' : image.id
, 'filename': image.avatar_file_name
- , 'imageh' : Math.round(image.height/image.width*200)
, 'name' : image.name
, 'pref' : image.prefecture
, 'like' : image.like

0 comments on commit ebf6e17

Please sign in to comment.