forked from forgejo/forgejo
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>
This commit is contained in:
parent
940ed92392
commit
ce66ca7f9f
4 changed files with 21 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue