From e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 15 Jun 2017 09:43:48 +0200 Subject: Notifications Signed-off-by: Thomas Citharel --- app/Resources/static/themes/material/js/tools.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/Resources/static/themes/material/js/tools.js') diff --git a/app/Resources/static/themes/material/js/tools.js b/app/Resources/static/themes/material/js/tools.js index 39398fd8..492640a0 100644 --- a/app/Resources/static/themes/material/js/tools.js +++ b/app/Resources/static/themes/material/js/tools.js @@ -21,4 +21,11 @@ function initExport() { } } -export { initExport, initFilters }; +function initNotifications() { + if ($('div').is('#notifications')) { + $('#button_notifications').show(); + $('.js-notifications-action').sideNav({ edge: 'right' }); + } +} + +export { initExport, initFilters, initNotifications }; -- cgit v1.2.3