From f256145f404f6afa0b2888829c1285fe17445dd4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 12 May 2017 15:02:32 +0200 Subject: First draft for notifications Signed-off-by: Thomas Citharel --- app/Resources/static/themes/material/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/Resources') 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(() => { const scrollPercent = (s / (d - c)) * 100; $('.progress .determinate').css('width', `${scrollPercent}%`); }); + + $('.notification').on('click', () => { + $.ajax({ + url: Routing.generate('notification-archive-all'), + method: 'GET', + }).done(() => { + $('#notifications').sideNav('hide'); + }); + }); }); -- cgit v1.2.3