mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	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:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user