diff options
| author | syeopite <syeopite@syeopite.dev> | 2025-01-22 11:33:51 -0800 |
|---|---|---|
| committer | syeopite <syeopite@syeopite.dev> | 2025-01-22 11:33:51 -0800 |
| commit | dca130ca6f329a474b0a8a072dd55a9b8e75b8f5 (patch) | |
| tree | 877f1b5df3a1736d95d2ce19a5a0d88c508b4d88 /assets/js/watched_widget.js | |
| parent | 086c6209ab7c2c28f8b67c4b02f9fff4ec1c2a39 (diff) | |
| parent | b0c7dd977151d30e85f0095f35de892624e87a35 (diff) | |
| download | invidious-dca130ca6f329a474b0a8a072dd55a9b8e75b8f5.tar.gz invidious-dca130ca6f329a474b0a8a072dd55a9b8e75b8f5.tar.bz2 invidious-dca130ca6f329a474b0a8a072dd55a9b8e75b8f5.zip | |
Routes: Clean ajax actions handlers (#5036)
Diffstat (limited to 'assets/js/watched_widget.js')
| -rw-r--r-- | assets/js/watched_widget.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/watched_widget.js b/assets/js/watched_widget.js index f1ac9cb4..06af62cc 100644 --- a/assets/js/watched_widget.js +++ b/assets/js/watched_widget.js @@ -6,7 +6,7 @@ function mark_watched(target) { var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode; tile.style.display = 'none'; - var url = '/watch_ajax?action_mark_watched=1&redirect=false' + + var url = '/watch_ajax?action=mark_watched&redirect=false' + '&id=' + target.getAttribute('data-id'); helpers.xhr('POST', url, {payload: payload}, { @@ -22,7 +22,7 @@ function mark_unwatched(target) { var count = document.getElementById('count'); count.textContent--; - var url = '/watch_ajax?action_mark_unwatched=1&redirect=false' + + var url = '/watch_ajax?action=mark_unwatched&redirect=false' + '&id=' + target.getAttribute('data-id'); helpers.xhr('POST', url, {payload: payload}, { |
