We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab257fb commit 90e91d6Copy full SHA for 90e91d6
Assets/js/checkbox.js
@@ -16,20 +16,18 @@ KB.on('dom.ready', function () {
16
task_id = taskIdElem.value;
17
}
18
19
+ let link = "";
20
if (URLRewrite) {
- const link = '/MarkdownPlus/Checkbox';
21
- KB.http.postJson(link, {
22
- 'task_id': task_id,
23
- 'number': e.target.getAttribute('number')
24
- });
+ link = '/MarkdownPlus/Checkbox';
25
26
else {
27
- const link = '?controller=CheckboxController&action=toggle&plugin=MarkdownPlus';
28
29
30
31
+ link = '?controller=CheckboxController&action=toggle&plugin=MarkdownPlus';
32
+
+ KB.http.postJson(link, {
+ 'task_id': task_id,
+ 'number': e.target.getAttribute('number')
+ });
33
34
35
});
0 commit comments