|
|
@ -3,6 +3,7 @@ import {initCompReactionSelector} from './comp/ReactionSelector.js'; |
|
|
|
import {initRepoIssueContentHistory} from './repo-issue-content.js'; |
|
|
|
import {initRepoIssueContentHistory} from './repo-issue-content.js'; |
|
|
|
import {validateTextareaNonEmpty} from './comp/EasyMDE.js'; |
|
|
|
import {validateTextareaNonEmpty} from './comp/EasyMDE.js'; |
|
|
|
import {initViewedCheckboxListenerFor, countAndUpdateViewedFiles} from './pull-view-file.js'; |
|
|
|
import {initViewedCheckboxListenerFor, countAndUpdateViewedFiles} from './pull-view-file.js'; |
|
|
|
|
|
|
|
import {initPopup} from './common-global.js'; |
|
|
|
|
|
|
|
|
|
|
|
const {csrfToken} = window.config; |
|
|
|
const {csrfToken} = window.config; |
|
|
|
|
|
|
|
|
|
|
@ -52,6 +53,7 @@ export function initRepoDiffConversationForm() { |
|
|
|
const newConversationHolder = $(await $.post(form.attr('action'), form.serialize())); |
|
|
|
const newConversationHolder = $(await $.post(form.attr('action'), form.serialize())); |
|
|
|
const {path, side, idx} = newConversationHolder.data(); |
|
|
|
const {path, side, idx} = newConversationHolder.data(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
initPopup(newConversationHolder.find('.tooltip')); |
|
|
|
form.closest('.conversation-holder').replaceWith(newConversationHolder); |
|
|
|
form.closest('.conversation-holder').replaceWith(newConversationHolder); |
|
|
|
if (form.closest('tr').data('line-type') === 'same') { |
|
|
|
if (form.closest('tr').data('line-type') === 'same') { |
|
|
|
$(`[data-path="${path}"] a.add-code-comment[data-idx="${idx}"]`).addClass('invisible'); |
|
|
|
$(`[data-path="${path}"] a.add-code-comment[data-idx="${idx}"]`).addClass('invisible'); |
|
|
|