aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-05-15 10:15:39 +0200
committerThomas Citharel <tcit@tcit.fr>2017-06-23 10:04:18 +0200
commitd6d3f4ec3698effd1d4b063e295341791bdcf7d7 (patch)
tree289d97b19ed944e2c55b252a73a35aedacd8ee09
parentf256145f404f6afa0b2888829c1285fe17445dd4 (diff)
downloadwallabag-d6d3f4ec3698effd1d4b063e295341791bdcf7d7.tar.gz
wallabag-d6d3f4ec3698effd1d4b063e295341791bdcf7d7.tar.zst
wallabag-d6d3f4ec3698effd1d4b063e295341791bdcf7d7.zip
changes and default actions
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rwxr-xr-xapp/Resources/static/themes/material/index.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js
index e16749f6..ba4552b8 100755
--- a/app/Resources/static/themes/material/index.js
+++ b/app/Resources/static/themes/material/index.js
@@ -77,12 +77,12 @@ $(document).ready(() => {
77 $('.progress .determinate').css('width', `${scrollPercent}%`); 77 $('.progress .determinate').css('width', `${scrollPercent}%`);
78 }); 78 });
79 79
80 $('.notification').on('click', () => { 80 $('.notification .notification-action').on('click', (e) => {
81 $.ajax({ 81 const id = parseInt($(e.target).attr('data-id'), 10);
82 url: Routing.generate('notification-archive-all'), 82 fetch(Routing.generate('notification-archive', { notification: id }), { credentials: 'same-origin' }).then(() => {
83 method: 'GET', 83 $(e.target).parents('.notification').removeClass('light-blue lighten-5');
84 }).done(() => {
85 $('#notifications').sideNav('hide'); 84 $('#notifications').sideNav('hide');
86 }); 85 });
86 return true;
87 }); 87 });
88}); 88});