Skip to content

Commit

Permalink
Merge pull request railsadminteam#2207 from kuboon/patch-1
Browse files Browse the repository at this point in the history
fix target typo 'blank' to '_blank'
  • Loading branch information
mshibuya committed Mar 9, 2015
2 parents b5e0824 + 7811d55 commit 9343e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rails_admin/config/fields/types/file_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class FileUpload < RailsAdmin::Config::Fields::Base
url = resource_url
if image
thumb_url = resource_url(thumb_method)
url != thumb_url ? v.link_to(v.image_tag(thumb_url, class: 'img-polaroid'), url, target: 'blank') : v.image_tag(thumb_url)
url != thumb_url ? v.link_to(v.image_tag(thumb_url, class: 'img-polaroid'), url, target: '_blank') : v.image_tag(thumb_url)
else
v.link_to(nil, url, target: 'blank')
v.link_to(nil, url, target: '_blank')
end
end
end
Expand Down

0 comments on commit 9343e38

Please sign in to comment.