Skip to content
Snippets Groups Projects
Commit 39e8811a authored by lechuck's avatar lechuck Committed by agata
Browse files

added new url discovery to privacy share buttons

parent 393fa880
Branches
Tags
1 merge request!3Noblogs 5.4
...@@ -77,6 +77,9 @@ ...@@ -77,6 +77,9 @@
var url = this.element.parents(".post").find('.entry-title').find("a").attr("href"); var url = this.element.parents(".post").find('.entry-title').find("a").attr("href");
if (url) if (url)
return url; return url;
var url = this.element.parents(".post").find('.title').find("a").attr("href");
if (url)
return url;
else else
return document.URL; return document.URL;
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment