summaryrefslogtreecommitdiff
path: root/source/features/view-markdown-source.tsx
diff options
context:
space:
mode:
authorGravatar Kid <44045911+kidonng@users.noreply.github.com> 2021-08-30 01:09:56 +0800
committerGravatar GitHub <noreply@github.com> 2021-08-30 00:09:56 +0700
commitd8cadc830723728ab5c32f36cea31ea3f6aee814 (patch)
tree456fe4e4f04b5b2e9bf09d1206370ebdcf736d40 /source/features/view-markdown-source.tsx
parent7e96d94b06d8f522fdbc5baeb9277f7c2b3da2fc (diff)
downloadrefined-github-d8cadc830723728ab5c32f36cea31ea3f6aee814.tar.gz
refined-github-d8cadc830723728ab5c32f36cea31ea3f6aee814.tar.zst
refined-github-d8cadc830723728ab5c32f36cea31ea3f6aee814.zip
Make some feature-generated links load via AJAX (#4639)
Diffstat (limited to '')
-rw-r--r--source/features/view-markdown-source.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/features/view-markdown-source.tsx b/source/features/view-markdown-source.tsx
index 0506bf87..27f1843c 100644
--- a/source/features/view-markdown-source.tsx
+++ b/source/features/view-markdown-source.tsx
@@ -11,6 +11,7 @@ async function init(): Promise<void> {
<div className="BtnGroup rgh-view-markdown-source mr-1">
<a
href="?plain=1"
+ data-pjax="#repo-content-pjax-container"
className="btn btn-sm BtnGroup-item tooltipped tooltipped-nw"
aria-label="Display the source"
>
@@ -18,6 +19,7 @@ async function init(): Promise<void> {
</a>
<a
href={location.pathname}
+ data-pjax="#repo-content-pjax-container"
className="btn btn-sm BtnGroup-item tooltipped tooltipped-nw"
aria-label="Display the rendered file"
>