Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Commit

Permalink
Tweak entities in README and add ROOT_PATH to js.
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Clarke committed Aug 26, 2008
1 parent 978b2bb commit fe8eb3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.textile
Expand Up @@ -15,21 +15,21 @@ h3. Show the comment threads:
<pre>
<code>
# Loads the commenting system
<%= Disqus::Widget::thread(:account => "example") %>
&lt;%= Disqus::Widget::thread(:account => "example") %&gt;

# Appends the comment count to a end of link text for a url that ends with
# #disqus_thread. For example:
# <a href="http://my.website/article-permalink#disqus_thread">View Comments</a>
<%= Discus::Widget::show_comment_count %>
&lt;%= Discus::Widget::show_comment_count %&gt;
</code>
</pre>

h3. Show the combo widget:

<pre>
<code>
<%= Disqus::Widget::combo(:account => "example", :color => "blue",
:hide_mods => false, :default_tab => "popular", :num_items => 25) %>
&lt;%= Disqus::Widget::combo(:account => "example", :color => "blue",
:hide_mods => false, :default_tab => "popular", :num_items => 25) %&gt;
</code>
</pre>

Expand Down
2 changes: 1 addition & 1 deletion lib/widget/widget.rb
Expand Up @@ -46,7 +46,7 @@ def show_comment_count(opts)
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
}
}
document.write('<script type="text/javascript" src="http://disqus.com/forums/#{opts[:account]}/get_num_replies.js' + query + '"></' + 'script>');
document.write('<script type="text/javascript" src="#{ROOT_PATH}#{opts[:account]}/get_num_replies.js' + query + '"></' + 'script>');
})();
//]]>
</script>
Expand Down

0 comments on commit fe8eb3c

Please sign in to comment.