From 9d9d7670099903736b666ef9de8144f4bbcc4382 Mon Sep 17 00:00:00 2001 From: Xin Date: Tue, 15 Mar 2016 14:17:34 -0700 Subject: [PATCH] fix nav bar of UI Change-Id: I9cadc1a0fdeab94db8d97f0dc9fdee13db2c55ec --- kb_web/app/scripts/controllers/about.js | 2 +- kb_web/app/scripts/controllers/login.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kb_web/app/scripts/controllers/about.js b/kb_web/app/scripts/controllers/about.js index 160d78a..9fabaa8 100644 --- a/kb_web/app/scripts/controllers/about.js +++ b/kb_web/app/scripts/controllers/about.js @@ -255,7 +255,7 @@ angular.module('kbWebApp') else if(mode=='http'){ $(".forStorage").hide(); $(".forHttp").show(); - if(mode != thisPage) $location.path('/StorageMode'); + if(mode != thisPage) $location.path('/'); } }; diff --git a/kb_web/app/scripts/controllers/login.js b/kb_web/app/scripts/controllers/login.js index b3f9108..e5041aa 100644 --- a/kb_web/app/scripts/controllers/login.js +++ b/kb_web/app/scripts/controllers/login.js @@ -27,7 +27,7 @@ angular.module('kbWebApp') 'Karma' ]; //if(kbCookie.getSessionID()!="") $location.path('/'); - kbCookie.checkMode('http'); + kbCookie.checkMode(''); //---------------------------------top navigation bar--------------------------------- $(window).on('hashchange', locationChange.change());