Permalink
Browse files

Fix assets src url.

  • Loading branch information...
Predoff committed Oct 5, 2012
1 parent 3ab5eb5 commit 581691172552b73da494f67479175eac26aa2fd2
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/views/ckeditor/shared/_asset.html.erb
@@ -1,7 +1,7 @@
-<%= content_tag(:div, :id => dom_id(asset), :class => "gal-item", :"data-url" => asset.url_content) do %>
- <%= link_to image_tag("/assets/ckeditor/filebrowser/images/gal_del.png",
- :title => I18n.t('ckeditor.buttons.delete')),
- polymorphic_path(asset, :format => :json),
+<%= content_tag(:div, :id => dom_id(asset), :class => "gal-item", :"data-url" => image_path(asset.url_content)) do %>
+ <%= link_to image_tag("/assets/ckeditor/filebrowser/images/gal_del.png",
+ :title => I18n.t('ckeditor.buttons.delete')),
+ polymorphic_path(asset, :format => :json),
:remote => true,
:method => :delete,
:confirm => t('ckeditor.confirm_delete'),

0 comments on commit 5816911

Please sign in to comment.