summaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-10-13 03:55:13 +0800
committerGitHub <noreply@github.com>2020-10-12 20:55:13 +0100
commit8be3e439c2b3a90fcb639b732008486b85314b8d (patch)
tree0d941779b1c545c4bfa41d8d54c1bf0f219a43eb /web_src/js
parentb546eda7a8fa17d86cf9722c9f7bcca009d40443 (diff)
downloadgitea-8be3e439c2b3a90fcb639b732008486b85314b8d.tar.gz
gitea-8be3e439c2b3a90fcb639b732008486b85314b8d.zip
Add team support for review request (#12039)
Add team support for review request Block #11355 Signed-off-by: a1012112796 <1012112796@qq.com> Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index e1fd24f37c..9fafe62d3e 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -663,15 +663,16 @@ function initIssueComments() {
const url = $(this).data('update-url');
const issueId = $(this).data('issue-id');
const id = $(this).data('id');
- const isChecked = $(this).data('is-checked');
+ const isChecked = $(this).hasClass('checked');
event.preventDefault();
updateIssuesMeta(
url,
- isChecked === 'true' ? 'attach' : 'detach',
+ isChecked ? 'detach' : 'attach',
issueId,
id,
).then(reload);
+ return false;
});
$(document).on('click', (event) => {