summaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-05-03 21:17:24 +0100
committerGitHub <noreply@github.com>2020-05-03 17:17:24 -0300
commitce66ca7f9f20ee69739e8800a4a629abbe9d25ac (patch)
treee634913f0abbf0aa54910ea79d09e2543df82cd5 /web_src/js
parent940ed923920ae662efa6967679e60297832c4af8 (diff)
downloadgitea-ce66ca7f9f20ee69739e8800a4a629abbe9d25ac.tar.gz
gitea-ce66ca7f9f20ee69739e8800a4a629abbe9d25ac.zip
Restore checkbox rendering and prevent poor sanitization of spans (#11277)
* Add test Signed-off-by: Andrew Thornton <art27@cantab.net> * Restore checkbox rendering and prevent poor sanitization of spans Signed-off-by: Andrew Thornton <art27@cantab.net> * Also fix preview context Signed-off-by: Andrew Thornton <art27@cantab.net> * Also fix preview context Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 992295addf..21b9da41ad 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -65,7 +65,7 @@ function initEditPreviewTab($form) {
previewFileModes = $previewTab.data('preview-file-modes').split(',');
$previewTab.on('click', function () {
const $this = $(this);
- let context = `{$this.data('context')}/`;
+ let context = `${$this.data('context')}/`;
const treePathEl = $form.find('input#tree_path');
if (treePathEl.length > 0) {
context += treePathEl.val();