sforkowany z mirror/social
Prevents a timeline entry's modal to show in certain cases.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>feature/noid/sql-rewrite-0929
rodzic
c3eb2f8f2a
commit
115a8f87db
|
@ -43,7 +43,7 @@ export default {
|
|||
TimelinePost
|
||||
},
|
||||
props: {
|
||||
item: { type: Object, default: () => {} },
|
||||
item: { type: Object, default: () => {} }
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -100,7 +100,11 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
showModal() {
|
||||
showModal(event) {
|
||||
// Do not show the timeline entry's modal if we click on a link, an attachment's miniature, or the post's author name
|
||||
if (event.target.tagName === 'A' || event.target.tagName === 'IMG' || event.target.className.indexOf('post-author') !== -1) {
|
||||
return
|
||||
}
|
||||
this.modal = true
|
||||
},
|
||||
closeModal() {
|
||||
|
|
Ładowanie…
Reference in New Issue