diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-19 12:58:25 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-19 12:58:25 +0100 |
| commit | 04c4ad9a6572167f049b833fc343b8eba819ac46 (patch) | |
| tree | d6240a1bb3a22bd9251f7db2ebaecd742ed8d37b /src/components/attachment/attachment.js | |
| parent | 73f46bfba68b80dc09d070ebc53310802c9a2046 (diff) | |
Open clicked links the statusnet_html in a new window.
Diffstat (limited to 'src/components/attachment/attachment.js')
| -rw-r--r-- | src/components/attachment/attachment.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index c88497a2..57d21b28 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -20,6 +20,11 @@ const Attachment = { } }, methods: { + linkClicked ({target}) { + if (target.tagName === 'A') { + window.open(target.href, '_blank') + } + }, toggleHidden () { this.showHidden = !this.showHidden } |
