Permalink
Browse files

Merge pull request #179 from Predoff/master

Fixing assets src url.
  • Loading branch information...
2 parents 3ab5eb5 + 5816911 commit 512821ac0746cb7fda00cfc81c4ccf8683394e6d @galetahub committed Oct 5, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/views/ckeditor/shared/_asset.html.erb
View
8 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 512821a

Please sign in to comment.