Skip to content

Commit

Permalink
Revert "allow customisable thumbnail size in the image picker."
Browse files Browse the repository at this point in the history
I totally forgot that this was already customisable with the Refinery::Images.user_image_sizes setting!

This reverts commit fc23691.
  • Loading branch information
parndt committed Feb 7, 2012
1 parent fc23691 commit 1606400
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/app/views/refinery/admin/_image_picker.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
current_image_link_href = refinery.insert_admin_images_path(:dialog => true, :callback => "image_picker_#{randomiser}_changed",
:width => 866, :height => 510, :conditions => conditions)
current_image_title = t('.change', :what => description.titleize)

geometry ||= Refinery::Images.user_image_sizes[thumbnail.to_sym]
-%>
<div id='image_picker_container_<%= randomiser %>'>
<%= link_to t('.show'), '', :class => "current_image_toggler" if toggle_image_display %>
Expand All @@ -17,7 +15,7 @@
<div class='current_image_container' style="margin-top: 10px<%= ";display: none" if toggle_image_display %>">
<a class='current_image_link dialog' href="<%= current_image_link_href %>" style='border: 0px' title='<%= current_image_title %>' name='<%= current_image_title %>'>
<% unless image.nil? -%>
<%= image_fu image, geometry,
<%= image_fu image, Refinery::Images.user_image_sizes[thumbnail.to_sym],
:class => "brown_border",
:class => "current_picked_image" %>
<% else -%>
Expand Down

0 comments on commit 1606400

Please sign in to comment.