|
|
@@ -125,8 +125,8 @@ module.exports =
|
|
|
shareOnFacebook: ->
|
|
|
try
|
|
|
url = encodeURIComponent(window.location.href)
|
|
|
- text = encodeURIComponent("Посетите \"#{@event.title}\" в Кохи Борбад")
|
|
|
- shareUrl = "https://www.facebook.com/sharer/sharer.php?u=#{url}"e=#{text}"
|
|
|
+ text = encodeURIComponent("Посетите "+@event.title+" в Кохи Борбад")
|
|
|
+ shareUrl = "https://www.facebook.com/sharer/sharer.php?u="+url+""e="+text
|
|
|
window.open(shareUrl, '_blank', 'width=600,height=400')
|
|
|
catch error
|
|
|
console.error 'Error sharing on Facebook:', error
|