From a9c506c29042d9ca33ba01ef5ddcb53a3a5016f1 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 7 Jun 2017 21:10:10 +0200 Subject: [PATCH] Set Toastr defaults --- ...5_notifications_toastr.js => 5_0_notifications_toastr.js} | 1 + .../tutti/{5_notifications.js => 5_1_notifications.js} | 5 +++++ 2 files changed, 6 insertions(+) rename src/scripts/tutti/{5_notifications_toastr.js => 5_0_notifications_toastr.js} (99%) rename src/scripts/tutti/{5_notifications.js => 5_1_notifications.js} (98%) diff --git a/src/scripts/tutti/5_notifications_toastr.js b/src/scripts/tutti/5_0_notifications_toastr.js similarity index 99% rename from src/scripts/tutti/5_notifications_toastr.js rename to src/scripts/tutti/5_0_notifications_toastr.js index f48cb73d..0945369c 100644 --- a/src/scripts/tutti/5_notifications_toastr.js +++ b/src/scripts/tutti/5_0_notifications_toastr.js @@ -474,3 +474,4 @@ window.toastr = factory(window.jQuery); } })); + diff --git a/src/scripts/tutti/5_notifications.js b/src/scripts/tutti/5_1_notifications.js similarity index 98% rename from src/scripts/tutti/5_notifications.js rename to src/scripts/tutti/5_1_notifications.js index e1831ee4..63b9c86c 100644 --- a/src/scripts/tutti/5_notifications.js +++ b/src/scripts/tutti/5_1_notifications.js @@ -327,3 +327,8 @@ function getNotificationsLoop() { getNotificationsLoop(); }, 30000); } + +/* Notifications: Toastr Defaults */ +toastr.options.showDuration = 50; +toastr.options.progressBar = true; +toastr.options.positionClass = 'toast-bottom-left';