mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: allows right-click on post-date sharing link (#7054)
This commit is contained in:
@@ -243,6 +243,7 @@ createWidget("post-date", {
|
|||||||
{
|
{
|
||||||
attributes: {
|
attributes: {
|
||||||
class: "post-date",
|
class: "post-date",
|
||||||
|
href: attrs.shareUrl,
|
||||||
"data-share-url": attrs.shareUrl,
|
"data-share-url": attrs.shareUrl,
|
||||||
"data-post-number": attrs.post_number
|
"data-post-number": attrs.post_number
|
||||||
}
|
}
|
||||||
@@ -258,7 +259,9 @@ createWidget("post-date", {
|
|||||||
return lastWikiEdit ? lastWikiEdit : createdAt;
|
return lastWikiEdit ? lastWikiEdit : createdAt;
|
||||||
},
|
},
|
||||||
|
|
||||||
click() {
|
click(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
const post = this.findAncestorModel();
|
const post = this.findAncestorModel();
|
||||||
|
|
||||||
const modalFallback = () => {
|
const modalFallback = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user