]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/material/js/tools.js
First draft for notifications
[github/wallabag/wallabag.git] / app / Resources / static / themes / material / js / tools.js
index 39398fd8a4c0fb4a15fd5ce2750ada6f2ca0e3ec..492640a0dc9199f14f7394436fe7cc8c5d61fb15 100644 (file)
@@ -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 };