diff --git a/app/assets/javascripts/channels/notifications.js b/app/assets/javascripts/channels/notifications.js deleted file mode 100644 index f1f2d519d..000000000 --- a/app/assets/javascripts/channels/notifications.js +++ /dev/null @@ -1,23 +0,0 @@ -//App.messages = App.cable.subscriptions.create('NotificationsChannel', { -// received: function (data) { -// if (window.location.href.indexOf('backoffice') !== -1) { -// $("#notification-alert").html(data['message']); -// -// slideIn_notification_alert(); -// } -// } -//}); - -function slideIn_notification_alert (){ - $("#notification-alert").animate({ - right: '20px' - }, 250); - - setTimeout(slideOut_notification_alert, 3500); -} - -function slideOut_notification_alert (){ - $("#notification-alert").animate({ - right: '-250px' - }, 200); -} diff --git a/app/views/layouts/_notifications_alert.html.haml b/app/views/layouts/_notifications_alert.html.haml deleted file mode 100644 index 99c4a4682..000000000 --- a/app/views/layouts/_notifications_alert.html.haml +++ /dev/null @@ -1 +0,0 @@ -#notification-alert.alert.alert-success diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index e6aeea5e5..d4278bc3d 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -54,7 +54,6 @@ %i.fa.fa-times{ style: 'position: fixed; top: 10; right: 30; color: white;' } = render partial: 'layouts/switch_devise_profile_module' - = render partial: 'layouts/notifications_alert' = render partial: 'layouts/footer', locals: { main_container_size: main_container_size } = render partial: 'layouts/google_analytics' diff --git a/app/views/layouts/new_application.html.haml b/app/views/layouts/new_application.html.haml index 2c9204012..5310f24cf 100644 --- a/app/views/layouts/new_application.html.haml +++ b/app/views/layouts/new_application.html.haml @@ -30,7 +30,6 @@ = yield = render :partial => "layouts/switch_devise_profile_module" - = render :partial => "layouts/notifications_alert" = render partial: "layouts/new_footer" = render partial: "layouts/google_analytics"