aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-05-12 15:02:32 +0200
committerThomas Citharel <tcit@tcit.fr>2017-06-23 10:02:45 +0200
commitf256145f404f6afa0b2888829c1285fe17445dd4 (patch)
tree7a276fc708b161e500474715c2851f412d4abc9a /app/Resources
parente0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37 (diff)
downloadwallabag-f256145f404f6afa0b2888829c1285fe17445dd4.tar.gz
wallabag-f256145f404f6afa0b2888829c1285fe17445dd4.tar.zst
wallabag-f256145f404f6afa0b2888829c1285fe17445dd4.zip
First draft for notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'app/Resources')
-rwxr-xr-xapp/Resources/static/themes/material/index.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js
index 435cd02f..e16749f6 100755
--- a/app/Resources/static/themes/material/index.js
+++ b/app/Resources/static/themes/material/index.js
@@ -76,4 +76,13 @@ $(document).ready(() => {
76 const scrollPercent = (s / (d - c)) * 100; 76 const scrollPercent = (s / (d - c)) * 100;
77 $('.progress .determinate').css('width', `${scrollPercent}%`); 77 $('.progress .determinate').css('width', `${scrollPercent}%`);
78 }); 78 });
79
80 $('.notification').on('click', () => {
81 $.ajax({
82 url: Routing.generate('notification-archive-all'),
83 method: 'GET',
84 }).done(() => {
85 $('#notifications').sideNav('hide');
86 });
87 });
79}); 88});