cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: refs/heads/master - CLOUDSTACK-1065: cloudstack UI - AWS Style Regions - when switching to another region, handle a case that the region's end point is not "http://hostname:port/client/"
Date Mon, 25 Mar 2013 22:30:54 GMT
Updated Branches:
  refs/heads/master 16250f8e4 -> ac18b9b0f


CLOUDSTACK-1065: cloudstack UI - AWS Style Regions - when switching to another region, handle
a case that the region's end point is not "http://hostname:port/client/"


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ac18b9b0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ac18b9b0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ac18b9b0

Branch: refs/heads/master
Commit: ac18b9b0f7f11ce2a061ce9b15feb356b4dcf4cf
Parents: 16250f8
Author: Jessica Wang <jessica.wang@citrix.com>
Authored: Mon Mar 25 15:30:01 2013 -0700
Committer: Jessica Wang <jessica.wang@citrix.com>
Committed: Mon Mar 25 15:30:32 2013 -0700

----------------------------------------------------------------------
 ui/scripts/cloud.core.callbacks.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ac18b9b0/ui/scripts/cloud.core.callbacks.js
----------------------------------------------------------------------
diff --git a/ui/scripts/cloud.core.callbacks.js b/ui/scripts/cloud.core.callbacks.js
index 6384f9b..1a9e045 100644
--- a/ui/scripts/cloud.core.callbacks.js
+++ b/ui/scripts/cloud.core.callbacks.js
@@ -59,7 +59,7 @@ $(document).ready(function() {
 	*/
 	if ($.urlParam('loginUrl') != 0) {	 
 		$.cookie('loginUrl', $.urlParam('loginUrl'), { expires: 1});
-	  document.location.href = '/client/';	
+		document.location.href = window.location.href.substring(0, window.location.href.indexOf('?'));

 	}
 	
 	/* 


Mime
View raw message