diff --git a/ui/new/jsp/instance.jsp b/ui/new/jsp/instance.jsp
index bf25553e5da..f72e350426b 100644
--- a/ui/new/jsp/instance.jsp
+++ b/ui/new/jsp/instance.jsp
@@ -173,7 +173,8 @@
-
+
+ Volume
diff --git a/ui/new/jsp/resource.jsp b/ui/new/jsp/resource.jsp
index c0555e7eb24..b576328bab4 100644
--- a/ui/new/jsp/resource.jsp
+++ b/ui/new/jsp/resource.jsp
@@ -1,434 +1,439 @@
-<%@ page import="java.util.*" %>
-
-<%@ page import="com.cloud.utils.*" %>
-
-<%
- Locale browserLocale = request.getLocale();
- CloudResourceBundle t = CloudResourceBundle.getBundle("resources/resource", browserLocale);
-%>
-
-
-
-
- Resources
-
-
-
-
-
-
- <%=t.t("details")%>
-
- <%=t.t("network")%>
-
- <%=t.t("secondary.storage")%>
-
-
-
-
-
-
-
-
-
- <%=t.t("Accounts")%>:
-
-
-
-
-
-
- <%=t.t("Instances")%>:
-
-
-
-
-
-
- <%=t.t("Volume")%>:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Guest VLAN 1000 -1001
-
-
-
-
-
-
-
-
-
-
-
- VM Group:
-
VLAN 10
-
-
-
- IP:
-
10.101.24.231
-
-
-
-
-
-
-
-
-
-
-
-
-
- VM Group:
-
VLAN 10
-
-
-
- IP:
-
10.101.24.231
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%=t.t("Account")%>:
-
-
-
-
-
-
- <%=t.t("Domain")%>:
-
-
-
-
-
-
-
-
- <%=t.t("Bytes.Received")%>:
-
-
-
-
-
-
- <%=t.t("Bytes.Sent")%>:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Adding a zone …
-
-
-
-
-
-
-
-
-
-
-
- Adding a pod …
-
-
-
-
-
-
-
-
-
-
-
- Adding a cluster …
-
-
-
-
-
-
-
-
-
-
-
- Adding a host …
-
-
-
-
-
-
-
-
-
-
-
-
-
- Adding a primary storage …
-
-
-
-
-
-
-
-
-
-
+<%@ page import="java.util.*" %>
+
+<%@ page import="com.cloud.utils.*" %>
+
+<%
+ Locale browserLocale = request.getLocale();
+ CloudResourceBundle t = CloudResourceBundle.getBundle("resources/resource", browserLocale);
+%>
+
+
+
+
+ Resources
+
+
+
+
+
+
+
+ <%=t.t("details")%>
+
+ <%=t.t("network")%>
+
+ <%=t.t("secondary.storage")%>
+
+
+
+
+
+
+
+
+
+ <%=t.t("Accounts")%>:
+
+
+
+
+
+
+ <%=t.t("Instances")%>:
+
+
+
+
+
+
+ <%=t.t("Volume")%>:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Guest VLAN 1000 -1001
+
+
+
+
+
+
+
+
+
+
+
+ VM Group:
+
VLAN 10
+
+
+
+ IP:
+
10.101.24.231
+
+
+
+
+
+
+
+
+
+
+
+
+
+ VM Group:
+
VLAN 10
+
+
+
+ IP:
+
10.101.24.231
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Secondary Storage
+
+
+
+
+ Pod Page
+
+
+ Cluster Page
+
+
+ Host page
+
+
+ Primary Storage Page
+
+
+ System VM Page
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%=t.t("Account")%>:
+
+
+
+
+
+
+ <%=t.t("Domain")%>:
+
+
+
+
+
+
+
+
+ <%=t.t("Bytes.Received")%>:
+
+
+
+
+
+
+ <%=t.t("Bytes.Sent")%>:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Adding a zone …
+
+
+
+
+
+
+
+
+
+
+
+ Adding a pod …
+
+
+
+
+
+
+
+
+
+
+
+ Adding a cluster …
+
+
+
+
+
+
+
+
+
+
+
+ Adding a host …
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Adding a primary storage …
+
+
+
+
+
+
+
+
+
+
diff --git a/ui/new/scripts/cloud.core2.domain.js b/ui/new/scripts/cloud.core2.domain.js
index 12d7a4f828c..e93bbb169fa 100644
--- a/ui/new/scripts/cloud.core2.domain.js
+++ b/ui/new/scripts/cloud.core2.domain.js
@@ -238,8 +238,8 @@ function afterLoadDomainJSP() {
refreshWholeTree(defaultRootDomainId, defaultRootLevel);
//***** switch between different tabs (begin) ********************************************************************
- var tabArray = ["tab_details", "tab_resource_limits", "tab_admin_account"];
- var tabContentArray = ["tab_content_details", "tab_content_resource_limits", "tab_content_admin_account"];
+ var tabArray = [$("#tab_details"), $("#tab_resource_limits"), $("#tab_admin_account")];
+ var tabContentArray = [$("#tab_content_details"), $("#tab_content_resource_limits"), $("#tab_content_admin_account")];
switchBetweenDifferentTabs(tabArray, tabContentArray);
//***** switch between different tabs (end) **********************************************************************
diff --git a/ui/new/scripts/cloud.core2.instance.js b/ui/new/scripts/cloud.core2.instance.js
index 860d685d10c..9ed5b5b2e6e 100644
--- a/ui/new/scripts/cloud.core2.instance.js
+++ b/ui/new/scripts/cloud.core2.instance.js
@@ -47,8 +47,8 @@ function clickInstanceGroupHeader($arrowIcon) {
initDialog("dialog_create_template", 400);
//***** switch between different tabs (begin) ********************************************************************
- var tabArray = ["tab_details", "tab_volume", "tab_statistics", "tab_router"];
- var tabContentArray = ["tab_content_details", "tab_content_volume", "tab_content_statistics", "tab_content_router"];
+ var tabArray = [$("#tab_details"), $("#tab_volume"), $("#tab_statistics"), $("#tab_router")];
+ var tabContentArray = [$("#tab_content_details"), $("#tab_content_volume"), $("#tab_content_statistics"), $("#tab_content_router")];
switchBetweenDifferentTabs(tabArray, tabContentArray);
//***** switch between different tabs (end) **********************************************************************
diff --git a/ui/new/scripts/cloud.core2.ipaddress.js b/ui/new/scripts/cloud.core2.ipaddress.js
index eb7a04cd702..f4c143ec02c 100644
--- a/ui/new/scripts/cloud.core2.ipaddress.js
+++ b/ui/new/scripts/cloud.core2.ipaddress.js
@@ -1,8 +1,8 @@
//***** baseline (begin) *******************************************************************************************************************
function afterLoadIpJSP() {
//***** switch between different tabs (begin) ********************************************************************
- var tabArray = ["tab_details", "tab_port_forwarding", "tab_load_balancer"];
- var tabContentArray = ["tab_content_details", "tab_content_port_forwarding", "tab_content_load_balancer"];
+ var tabArray = [$("#tab_details"), $("#tab_port_forwarding"), $("#tab_load_balancer")];
+ var tabContentArray = [$("#tab_content_details"), $("#tab_content_port_forwarding"), $("#tab_content_load_balancer")];
switchBetweenDifferentTabs(tabArray, tabContentArray);
//***** switch between different tabs (end) **********************************************************************
diff --git a/ui/new/scripts/cloud.core2.js b/ui/new/scripts/cloud.core2.js
index ae5984db1ba..927355c91c9 100644
--- a/ui/new/scripts/cloud.core2.js
+++ b/ui/new/scripts/cloud.core2.js
@@ -585,17 +585,17 @@ function switchBetweenDifferentTabs(tabArray, tabContentArray) {
}
function switchToTab(tabIndex, tabArray, tabContentArray) {
- $("#"+tabArray[tabIndex]).bind("click", function(event){
- $("#"+tabArray[tabIndex]).removeClass("off").addClass("on"); //current tab turns on
+ tabArray[tabIndex].bind("click", function(event){
+ tabArray[tabIndex].removeClass("off").addClass("on"); //current tab turns on
for(var k=0; k