diff --git a/public/js/controllers/notificationCtrl.js b/public/js/controllers/notificationCtrl.js index c5567ce038..795cf91538 100644 --- a/public/js/controllers/notificationCtrl.js +++ b/public/js/controllers/notificationCtrl.js @@ -33,7 +33,7 @@ habitrpg.controller('NotificationCtrl', $rootScope.$watch('user.stats.mp', function(after,before) { if (after == before) return; - if (User.user.stats.lvl == 0) return; + if (!User.user.flags.classSelected || User.user.preferences.disableClasses) return; var mana = after - before; Notification.mp(mana); }); diff --git a/public/js/services/notificationServices.js b/public/js/services/notificationServices.js index c55acfa90b..2d5b89eb16 100644 --- a/public/js/services/notificationServices.js +++ b/public/js/services/notificationServices.js @@ -6,11 +6,11 @@ angular.module("notificationServices", []) function growl(html, type) { $.bootstrapGrowl(html, { ele: '#notification-area', - type: type, //(null, 'info', 'error', 'success', 'gp', 'xp', 'hp', 'lvl','death') + type: type, //(null, 'text', 'error', 'success', 'gp', 'xp', 'hp', 'lvl', 'death', 'mp') top_offset: 20, align: 'right', //('left', 'right', or 'center') width: 250, //(integer, or 'auto') - delay: 3000, + delay: 7000, allow_dismiss: true, stackup_spacing: 10 // spacing between consecutive stacecked growls. });