CLOUDSTACK-1065: cloudstack UI - AWS Style Regions - make loginCmdText local.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5f8a2781 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5f8a2781 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5f8a2781 Branch: refs/heads/marvin_refactor Commit: 5f8a2781967971e28bc2751d0903d9c99ea4e28e Parents: b1f67a0 Author: Jessica Wang <[email protected]> Authored: Thu Apr 11 13:38:25 2013 -0700 Committer: Jessica Wang <[email protected]> Committed: Thu Apr 11 13:39:04 2013 -0700 ---------------------------------------------------------------------- ui/scripts/cloudStack.js | 4 ++-- ui/scripts/ui-custom/regions.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5f8a2781/ui/scripts/cloudStack.js ---------------------------------------------------------------------- diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js index 0cf80b0..a8bca91 100644 --- a/ui/scripts/cloudStack.js +++ b/ui/scripts/cloudStack.js @@ -255,11 +255,11 @@ array1.push("&domain=" + encodeURIComponent("/")); } - g_loginCmdText = array1.join(""); + var loginCmdText = array1.join(""); $.ajax({ type: "POST", - data: "command=login" + g_loginCmdText + "&response=json", + data: "command=login" + loginCmdText + "&response=json", dataType: "json", async: false, success: function(json) { http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5f8a2781/ui/scripts/ui-custom/regions.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui-custom/regions.js b/ui/scripts/ui-custom/regions.js index 2f61dfd..0469638 100644 --- a/ui/scripts/ui-custom/regions.js +++ b/ui/scripts/ui-custom/regions.js @@ -89,7 +89,7 @@ closeRegionSelector({ complete: function() { $('#container').prepend($('<div>').addClass('loading-overlay')); - window.name = g_loginCmdText; + //window.name = g_loginCmdText; document.location.href = url; } });
