Commit 55ecee0e authored by Xiaowu Zhang's avatar Xiaowu Zhang

fix twitter share unknown word

parent 81c8c47f
......@@ -131,7 +131,7 @@
});
}).push(function(result) {
var share_context = g.__element.getElementsByClassName("share")[0];
share_context.href = "https://twitter.com/intent/tweet?hashtags=MusicPlayer&text=" + result.data.title;
share_context.href = "https://twitter.com/intent/tweet?hashtags=MusicPlayer&text=" + encodeURI(result.data.title);
return g.displayThisTitle(options.action + " : " + result.data.title);
}).push(function() {
return g.allDocs({
......
......@@ -188,7 +188,7 @@
var share_context = g.__element.getElementsByClassName("share")[0];
share_context.href =
"https://twitter.com/intent/tweet?hashtags=MusicPlayer&text="
+ result.data.title;
+ encodeURI(result.data.title);
return g.displayThisTitle(options.action + " : "
+ result.data.title);
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment