edit ditto.js

This commit is contained in:
ruanyf
2014-04-25 23:56:04 +08:00
parent 9212a032f3
commit 020c13b01d
+7 -3
View File
@@ -26,9 +26,9 @@ var disqusCode = '<h3>留言</h3><div id="disqus_thread"></div>'
+ " })();"
+ '</script>';
var disqus_identifier = location.hash;
var disqus_title = document.title;
var disqus_url = location.href;
var disqus_identifier;
var disqus_title;
var disqus_url;
function initialize() {
// initialize sidebar and buttons
@@ -195,6 +195,10 @@ function router() {
path = path + ".md";
}
disqus_identifier = location.hash;
disqus_title = $(ditto.content_id+" h1").text();
disqus_url = location.href;
// otherwise get the markdown and render it
var loading = show_loading();
$.get(path , function(data) {