From 2e6bc8fd5587ba0dafb9e838a1920b43db228b92 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Wed, 26 Apr 2017 17:29:35 +0530 Subject: [PATCH] removed message box if logged in id is null --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index d8cc549..40c3f43 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -130,6 +130,10 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic else { if (result.loginId != undefined || result.loginId != "" || result.loginId != null) { + if ($("#messageModal").length > 0){ + + $("#messageModal").modal('hide'); + } $rootScope.userData = result; $rootScope.userModules = result.modules; $rootScope.isVisibleLogin = false; @@ -144,6 +148,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic else $rootScope.haveRoleAdmin = true; } + } } }, -- libgit2 0.21.4