From 0b9c5271bb6d58c9b6c5035edebfa472c17f93e5 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 25 Aug 2014 17:49:53 -0600 Subject: [PATCH] feat(newStuff): show newStuff modal on page load if present --- public/js/controllers/notificationCtrl.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/controllers/notificationCtrl.js b/public/js/controllers/notificationCtrl.js index 1188db3759..d2436c03b4 100644 --- a/public/js/controllers/notificationCtrl.js +++ b/public/js/controllers/notificationCtrl.js @@ -167,5 +167,9 @@ habitrpg.controller('NotificationCtrl', $rootScope.$on('responseText', function(ev, error){ Notification.text(error); }); + + // Show new-stuff modal on load + if (User.user.flags.newStuff) + $rootScope.openModal('newStuff'); } ]);