From 44c9971482949057d5ea214d01c5e9f19259e44e Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 13 Jan 2017 16:26:24 +0530 Subject: [PATCH] removed commnetd code --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 10 +--------- 400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html | 112 +--------------------------------------------------------------------------------------------------------------- 2 files changed, 2 insertions(+), 120 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 2cf3951..26217f2 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -373,15 +373,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $rootScope.currentActiveModuleTitle = selectedModuleName; }) - var currentSlug = currentURL.replace('/', ''); - - $("#nav ul li a").each(function () { - if ($(this).attr("href") == currentURL || $(this).attr("href") == '') - // $(this).addClass("active"); - // $(this).closest('li').addClass('active'); - $(this).parent().addClass('active'); - }); - + $rootScope.ClearIframe(); //load common data diff --git a/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html b/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html index 4c1946f..71a24b2 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html @@ -56,117 +56,7 @@ $(function () { $('[data-toggle="tooltip"]').tooltip(); }) - - //var appPath = window.location.pathname; - - //var appPathvalue = appPath.substring(appPath.lastIndexOf('/') + 1); - - //if (appPathvalue == "da-view-list") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:first-child a").addClass('active'); - - //} - - //else if (appPathvalue == "3dAnatomy") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(2) a").addClass('active'); - - //} - //else if (appPathvalue == "clinical-illustrations") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(3) a").addClass('active'); - - - //} - //else if (appPathvalue == "clinical-animations") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(4) a").addClass('active'); - - - //} - //else if (appPathvalue == "encyclopedia") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(5) a").addClass('active'); - - - //} - //else if (appPathvalue == "curriculum-builder") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(6) a").addClass('active'); - - - //} - - //else if (appPathvalue == "anatomy-test") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(7) a").addClass('active'); - - - //} - - //else if (appPathvalue == "IP-10") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(8) a").addClass('active'); - - //} - //else if (appPathvalue == "lab-exercises") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(9) a").addClass('active'); - - //} - //else if (appPathvalue == "indepth-reports") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(10) a").addClass('active'); - - //} - //else if (appPathvalue == "complementary-and-alternate-medicine") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(11) a").addClass('active'); - - //} - //else if (appPathvalue == "ADAM-Images") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(12) a").addClass('active'); - - //} - - //else if (appPathvalue == "bodyguide") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(13) a").addClass('active'); - - //} - //else if (appPathvalue == "symptom-navigator") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(14) a").addClass('active'); - - //} - //else if (appPathvalue == "wellness-tools") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(15) a").addClass('active'); - - //} - //else if (appPathvalue == "ADAM-on-demand") { - - // $(".nav-sidebar li a").removeClass('active'); - // $(".nav-sidebar li:nth-child(16) a").addClass('active'); - - //} - + });