mirror of https://github.com/go-gitea/gitea.git
revert function change
This commit is contained in:
parent
7c31f74849
commit
f4a743dff0
|
@ -31,9 +31,7 @@ function initEditPreviewTab($form) {
|
|||
const data = await response.text();
|
||||
const $previewPanel = $form.find('.tab[data-tab="preview"]');
|
||||
if ($previewPanel.length) {
|
||||
$previewPanel.html(data);
|
||||
initMarkupContent();
|
||||
attachRefIssueContextPopup($panelPreviewer.find('p .ref-issue'));
|
||||
renderPreviewPanelContent($previewPanel, data);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error:', error);
|
||||
|
@ -178,3 +176,11 @@ export function initRepoEditor() {
|
|||
});
|
||||
})();
|
||||
}
|
||||
|
||||
export function renderPreviewPanelContent($previewPanel, data) {
|
||||
$previewPanel.html(data);
|
||||
initMarkupContent();
|
||||
|
||||
const $refIssues = $previewPanel.find('p .ref-issue');
|
||||
attachRefIssueContextPopup($refIssues);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue