Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #179 from Predoff/master

Fixing assets src url.
  • Loading branch information...
commit 512821ac0746cb7fda00cfc81c4ccf8683394e6d 2 parents 3ab5eb5 + 5816911
@galetahub authored
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'),
Please sign in to comment.
Something went wrong with that request. Please try again.