change url share setting
This commit is contained in:
parent
62fbcee0f0
commit
0af4fb0502
|
@ -46,8 +46,8 @@
|
|||
<script type="text/javascript">
|
||||
(function(){
|
||||
$(".fb-share-button").click(function(){
|
||||
var img = "<%= @bulletin.image.url rescue '' %>",
|
||||
url = "https://www.facebook.com/sharer/sharer.php?s=100&p[title]=<%= @bulletin.title %>&p[images][0]=" + img + "+&p[url]=<%= request.url %>");
|
||||
var img = window.location.protocol + "//" + window.location.host + "<%= @bulletin.image.url rescue '' %>",
|
||||
url = "https://www.facebook.com/sharer/sharer.php?s=100&p[title]=<%= @bulletin.title %>&p[images][0]=" + img + "&p[url]="+window.location.href;
|
||||
newwindow = window.open(url,'name','height=500,width=1024');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue