From c6a0c62fb6edf35cb766d0f3ca570d3c695184df Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 31 May 2011 17:00:53 -0700 Subject: [PATCH] bug 7553: cloudStack - Router page - add Service Offering gridrow. --- ui/jsp/router.jsp | 16 +++++++++++++--- ui/scripts/cloud.core.router.js | 11 +++++++---- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/ui/jsp/router.jsp b/ui/jsp/router.jsp index 6aaa9b02ae8..97e327b431e 100644 --- a/ui/jsp/router.jsp +++ b/ui/jsp/router.jsp @@ -157,6 +157,16 @@ dictionary = {
+
+
+ :
+
+
+
+
+
+
+
:
@@ -167,7 +177,7 @@ dictionary = {
-
+
:
@@ -178,7 +188,7 @@ dictionary = {
-
+
:
@@ -188,7 +198,7 @@ dictionary = {
-
+
:
diff --git a/ui/scripts/cloud.core.router.js b/ui/scripts/cloud.core.router.js index 94ab5de1431..c02f25b3d3b 100644 --- a/ui/scripts/cloud.core.router.js +++ b/ui/scripts/cloud.core.router.js @@ -75,7 +75,8 @@ function routerGetSearchParams() { } function afterLoadRouterJSP() { - + // dialogs + initDialog("dialog_change_system_service_offering", 600); } function routerToMidmenu(jsonObj, $midmenuItem1) { @@ -176,7 +177,8 @@ function routerJsonToDetailsTab() { $thisTab.find("#publicip").text(fromdb(jsonObj.publicip)); $thisTab.find("#privateip").text(fromdb(jsonObj.linklocalip)); $thisTab.find("#guestipaddress").text(fromdb(jsonObj.guestipaddress)); - $thisTab.find("#hostname").text(fromdb(jsonObj.hostname)); + $thisTab.find("#hostname").text(fromdb(jsonObj.hostname)); + $thisTab.find("#serviceOfferingName").text(fromdb(jsonObj.serviceofferingname)); $thisTab.find("#networkdomain").text(fromdb(jsonObj.networkdomain)); $thisTab.find("#domain").text(fromdb(jsonObj.domain)); $thisTab.find("#account").text(fromdb(jsonObj.account)); @@ -224,7 +226,8 @@ function routerClearDetailsTab() { $thisTab.find("#publicip").text(""); $thisTab.find("#privateip").text(""); $thisTab.find("#guestipaddress").text(""); - $thisTab.find("#hostname").text(""); + $thisTab.find("#hostname").text(""); + $thisTab.find("#serviceOfferingName").text(""); $thisTab.find("#networkdomain").text(""); $thisTab.find("#domain").text(""); $thisTab.find("#account").text(""); @@ -309,7 +312,7 @@ function doChangeSystemServiceOffering($actionLink, $detailsTab, $midmenuItem1) } $.ajax({ - data: createURL("command=listServiceOfferings&VirtualMachineId="+id), + data: createURL("command=listServiceOfferings&issystem=true"), dataType: "json", async: false, success: function(json) {