diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-08-16 17:25:47 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-08-16 17:25:47 +0200 |
commit | 4fa9a3c5d83a1024678596a586afe5df14a345b5 (patch) | |
tree | 1f4facd10b9fda91a252e3d35c5fd79c47c3081d /assets | |
parent | f28b73b21f705102f8536cd16ea28122aa870e49 (diff) | |
download | Shaarli-4fa9a3c5d83a1024678596a586afe5df14a345b5.tar.gz Shaarli-4fa9a3c5d83a1024678596a586afe5df14a345b5.tar.zst Shaarli-4fa9a3c5d83a1024678596a586afe5df14a345b5.zip |
Fix a JS bug preventing AJAX tag deletion to work
Fixes #1214
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(); |