summaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/index.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) => {