diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-09-20 23:34:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 23:34:44 +0200 |
commit | a4fbe88b6d007094fa395b17802e593ecca0588b (patch) | |
tree | ebbb08270fd77d3dec447054fb65801a2b28a625 /assets | |
parent | bede8e1b633d720d6a7d1b05ba367811f3ac2b87 (diff) | |
parent | 4fa9a3c5d83a1024678596a586afe5df14a345b5 (diff) | |
download | Shaarli-a4fbe88b6d007094fa395b17802e593ecca0588b.tar.gz Shaarli-a4fbe88b6d007094fa395b17802e593ecca0588b.tar.zst Shaarli-a4fbe88b6d007094fa395b17802e593ecca0588b.zip |
Merge pull request #1215 from ArthurHoaro/hotfix/tag-deletion
Fix a JS bug preventing AJAX tag deletion to work
Diffstat (limited to 'assets')
-rw-r--r-- | assets/default/js/base.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/default/js/base.js b/assets/default/js/base.js index 8bf79d3e..1b8d8c36 100644 --- a/assets/default/js/base.js +++ b/assets/default/js/base.js | |||
@@ -548,7 +548,7 @@ function init(description) { | |||
548 | event.preventDefault(); | 548 | event.preventDefault(); |
549 | const block = findParent(event.target, 'div', { class: 'tag-list-item' }); | 549 | const block = findParent(event.target, 'div', { class: 'tag-list-item' }); |
550 | const tag = block.getAttribute('data-tag'); | 550 | const tag = block.getAttribute('data-tag'); |
551 | const refreshedToken = document.getElementById('token'); | 551 | const refreshedToken = document.getElementById('token').value; |
552 | 552 | ||
553 | if (confirm(`Are you sure you want to delete the tag "${tag}"?`)) { | 553 | if (confirm(`Are you sure you want to delete the tag "${tag}"?`)) { |
554 | const xhr = new XMLHttpRequest(); | 554 | const xhr = new XMLHttpRequest(); |