removed old share links
This commit is contained in:
parent
781a49750e
commit
caad66cfb8
|
@ -38,21 +38,20 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= share_links(@bulletin, 'announcement') %>
|
<%#= share_links(@bulletin, 'announcement') %>
|
||||||
<% if @fb_share %>
|
<% if @fb_share %>
|
||||||
<a href="" target="_blank" class="fb-share-button">
|
<a href="" target="_blank" class="fb-share-button">
|
||||||
<%= image_tag("announcement/fbn.png",:width=>30, :height=>30) %>
|
<%= image_tag("announcement/fbn.png",:width=>30, :height=>30) %>
|
||||||
</a>
|
</a>
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function(){
|
||||||
|
$(".fb-share-button").click(function(){
|
||||||
|
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;
|
||||||
|
})
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
(function(){
|
|
||||||
$(".fb-share-button").click(function(){
|
|
||||||
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;
|
|
||||||
})
|
|
||||||
})();
|
|
||||||
</script>
|
|
Loading…
Reference in New Issue