Gogs 3 săptămâni în urmă
părinte
comite
bbc63d703c
2 a modificat fișierele cu 7 adăugiri și 5 ștergeri
  1. 5 3
      README.md
  2. 2 2
      vue/app/shared/EventDetailModal/index.coffee

+ 5 - 3
README.md

@@ -1,7 +1,9 @@
 # Текущая ззадача
-
-напиши все файлы MultiLevelMenu, сделай коектное мобильную версию, с боковым открытием
-
+данный вызов не открывает модальное окно, исправь с учётом реализации глобальной шины событий
+      @$root.$emit('open-modal', {
+        component: 'EventDetailModal',
+        props: { event }
+      })
 
 # применяй правила:
 

+ 2 - 2
vue/app/shared/EventDetailModal/index.coffee

@@ -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}&quote=#{text}"
+        text = encodeURIComponent("Посетите "+@event.title+" в Кохи Борбад")
+        shareUrl = "https://www.facebook.com/sharer/sharer.php?u="+url+"&quote="+text
         window.open(shareUrl, '_blank', 'width=600,height=400')
       catch error
         console.error 'Error sharing on Facebook:', error