Fix CreateComment for SQLite and JS click event on Request Review (#11040)
* fix some bug about Request review * fix ``CreateComment`` wrong using ,it will not work when use Sqlite * fix wrong js click event code , it will send wrong data when it has many choices Signed-off-by: a1012112796 <[email protected]> * Apply suggestions from code review Co-Authored-By: Lauris BH <[email protected]> * add getReviewerByIssueIDAndUserID fix wrong conditions check in initIssueComments after #10972 * call CI again Co-authored-by: Lauris BH <[email protected]> Co-authored-by: techknowlogick <[email protected]> Co-authored-by: guillep2k <[email protected]>
This commit is contained in:
co-authored by
Lauris BH
techknowlogick
guillep2k
parent
8592fb7121
commit
cc07b9ca37
+11
-7
@@ -661,17 +661,21 @@ function initInstall() {
|
||||
}
|
||||
|
||||
function initIssueComments() {
|
||||
if ($('.repository.view.issue .comments').length === 0) return;
|
||||
if ($('.repository.view.issue .timeline').length === 0) return;
|
||||
|
||||
$('.re-request-review').on('click', function (event) {
|
||||
const url = $(this).data('update-url');
|
||||
const issueId = $(this).data('issue-id');
|
||||
const id = $(this).data('id');
|
||||
const isChecked = $(this).data('is-checked');
|
||||
|
||||
$('.re-request-review').click((event) => {
|
||||
const $this = $('.re-request-review');
|
||||
event.preventDefault();
|
||||
updateIssuesMeta(
|
||||
$this.data('update-url'),
|
||||
url,
|
||||
'',
|
||||
$this.data('issue-id'),
|
||||
$this.data('id'),
|
||||
$this.data('is-checked')
|
||||
issueId,
|
||||
id,
|
||||
isChecked
|
||||
).then(reload);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user