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('
');
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('');
+ }
$('#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 @@