diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index a831488..b8640f6 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -271,31 +271,30 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic } function ShowAssignedModulesPopup(userModules) { + $('#dvUserModulesInfo').modal('hide'); + $('#dvPending').modal('hide'); var allModules = Modules; var arrPendingModules = []; - if ($('#dvPendingModules').length > 0) { - $('#dvPending').hide(); - } - for (var module = 1; module <= allModules.length; module++) { - $('#moduleDiv' + module).hide(); - } - if (('#moduleDiv1017').length > 0) { - $('#moduleDiv1017').hide(); - } for (var count = 0; count < userModules.length; count++) { for (var module = 0; module < allModules.length; module++) { if (userModules[count].id == allModules[module].Id) { - $('#moduleDiv' + userModules[count].id).show(); + $('#dvUserModules').append('
• ' + userModules[count].name + '
'); break; } - if (userModules[count].id == 7) - arrPendingModules.push(userModules[count].id); - if (userModules[count].id == 8) - arrPendingModules.push(userModules[count].id); - if (userModules[count].id == 10) - arrPendingModules.push(userModules[count].id); + if (userModules[count].id == 7) { + arrPendingModules.push(userModules[count]); + break; + } + if (userModules[count].id == 8) { + arrPendingModules.push(userModules[count]); + break; + } + if (userModules[count].id == 10) { + arrPendingModules.push(userModules[count]); + break; + } } } if (userModules.length > 0) { @@ -303,6 +302,10 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic } if (arrPendingModules.length > 0) { + $('#dvPending').modal('show'); + for (var module = 0; module < arrPendingModules.length; module++) { + $('#dvPendingModules').append('
• ' + arrPendingModules[module].name + '
'); + } $('#dvPendingModules').show(); } } diff --git a/400-SOURCECODE/AIAHTML5.Web/index.html b/400-SOURCECODE/AIAHTML5.Web/index.html index c23caff..93d3f16 100644 --- a/400-SOURCECODE/AIAHTML5.Web/index.html +++ b/400-SOURCECODE/AIAHTML5.Web/index.html @@ -1244,64 +1244,11 @@
-
-
-
• Dissectible Anatomy
-
-
-
• Atlas Anatomy
-
-
-
• 3D Anatomy
-
-
-
• Clinical Illustrations
-
-
-
• Clinical Animations
-
-
-
• Encyclopedia
-
-
-
• IP 10
-
-
-
• In - Depth Reports
-
-
-
• Complementary and Alternative Medicine
-
-
-
• A.D.A.M Images
-
-
-
• Body Guide
-
-
-
• Symptom Navigator
-
-
-
• The Wellness Tools
-
-
-
• A.D.A.M on Demand
-
-
+
Pending Modules
-
-
-
• Curriculum Builder
-
-
-
• Anatomy Test
-
-
-
• Lab Exercises
-
-
+