From 1d6c5692ec48604b872b9efec7d5366a6e4a55cc Mon Sep 17 00:00:00 2001 From: Evandro Jr Date: Fri, 31 Oct 2014 15:58:21 -0300 Subject: [PATCH] removed unnecessary old ballon element --- plugins/comment_paragraph/public/comment_paragraph_macro.js | 4 +--- plugins/comment_paragraph/public/images/comments.gif | Bin 1700 -> 0 bytes plugins/comment_paragraph/views/comment_paragraph_plugin_profile/_comment_paragraph.html.erb | 16 +++++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 plugins/comment_paragraph/public/images/comments.gif diff --git a/plugins/comment_paragraph/public/comment_paragraph_macro.js b/plugins/comment_paragraph/public/comment_paragraph_macro.js index 9768759..2cfc7f2 100644 --- a/plugins/comment_paragraph/public/comment_paragraph_macro.js +++ b/plugins/comment_paragraph/public/comment_paragraph_macro.js @@ -51,9 +51,7 @@ jQuery(document).ready(function($) { div.addClass('opened'); } } - - //Hides old style ballons - $("img[alt|=Comments]").hide(); + rangy.init(); cssApplier = rangy.createCssClassApplier("commented-area", {normalize: false}); //Add marked text bubble diff --git a/plugins/comment_paragraph/public/images/comments.gif b/plugins/comment_paragraph/public/images/comments.gif deleted file mode 100644 index e3982a9..0000000 Binary files a/plugins/comment_paragraph/public/images/comments.gif and /dev/null differ diff --git a/plugins/comment_paragraph/views/comment_paragraph_plugin_profile/_comment_paragraph.html.erb b/plugins/comment_paragraph/views/comment_paragraph_plugin_profile/_comment_paragraph.html.erb index fac0425..0b4215b 100644 --- a/plugins/comment_paragraph/views/comment_paragraph_plugin_profile/_comment_paragraph.html.erb +++ b/plugins/comment_paragraph/views/comment_paragraph_plugin_profile/_comment_paragraph.html.erb @@ -1,11 +1,11 @@
- - + +
-
- <%= inner_html %> -
-
+
+ <%= inner_html %> +
+
@@ -15,10 +15,11 @@
+ <% if logged_in? %> <%= url = { :profile => profile_identifier, :controller => 'comment_paragraph_plugin_profile', :action => 'view_comments', :paragraph_id => paragraph_id, :article_id => article_id} link_to_remote( - image_tag("/plugins/comment_paragraph/images/comments.gif"), + '', { :url => url, :method => :post, @@ -30,6 +31,7 @@ :'data-url' => url_for(url) } )%> + <% end %>