-
+
-
-
+
+
+
+
+
+
+ statistics....
+
+
diff --git a/ui/new/scripts/cloud.core.instance.js b/ui/new/scripts/cloud.core.instance.js
index d904072dcd4..1bbb17f7330 100755
--- a/ui/new/scripts/cloud.core.instance.js
+++ b/ui/new/scripts/cloud.core.instance.js
@@ -542,6 +542,32 @@ function clickInstanceGroupHeader($arrowIcon) {
zIndex: 2000
}));
+ //***** switch to different tab (begin) ********************************************************************
+ $("#tab_details").bind("click", function(event){
+ $(this).removeClass("off").addClass("on");
+ $("#tab_volume, #tab_statistics").removeClass("on").addClass("off");
+ $("#tab_content_details").show();
+ $("#tab_content_volume, #tab_content_statistics").hide();
+ return false;
+ });
+
+ $("#tab_volume").bind("click", function(event){
+ $(this).removeClass("off").addClass("on");
+ $("#tab_details, #tab_statistics").removeClass("on").addClass("off");
+ $("#tab_content_volume").show();
+ $("#tab_content_details, #tab_content_statistics").hide();
+ return false;
+ });
+
+ $("#tab_statistics").bind("click", function(event){
+ $(this).removeClass("off").addClass("on");
+ $("#tab_details, #tab_volume").removeClass("on").addClass("off");
+ $("#tab_content_statistics").show();
+ $("#tab_content_details, #tab_content_volume").hide();
+ return false;
+ });
+ //***** switch to different tab (end) **********************************************************************
+
//***** VM Wizard (begin) ******************************************************************************
$vmPopup = $("#vm_popup");
var $serviceOfferingTemplate = $("#vm_popup_service_offering_template");
diff --git a/ui/new/scripts/cloud.core.js b/ui/new/scripts/cloud.core.js
index c563805529c..59c53cbc28d 100755
--- a/ui/new/scripts/cloud.core.js
+++ b/ui/new/scripts/cloud.core.js
@@ -170,7 +170,7 @@ function fromdb(val) {
}
function todb(val) {
- return encodeURIComponent(escape(display));
+ return encodeURIComponent(escape(val));
}