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 %>