diff --git a/client/WEB-INF/classes/resources/resource.properties b/client/WEB-INF/classes/resources/resource.properties
index 3c78227e0c4..660ce2f5217 100644
--- a/client/WEB-INF/classes/resources/resource.properties
+++ b/client/WEB-INF/classes/resources/resource.properties
@@ -118,10 +118,6 @@ please.confirm.you.want.to.lock.account.that.will.prevent.account.access.to.the.
please.confirm.you.want.to.enable.account = Please confirm you want to enable account.
please.select.an.available.zone.to.associate.your.new.ip.with..acquiring.additional.ip.may.cost.you.an.additional.dollars.per.month. = Please select an availability zone to associate your new IP with. Acquiring additional IP may cost you an additional dollars per month.
please.restart.your.management.server.for.your.new.settings.to.take.effect = Please RESTART your management server for your new settings to take effect
-enabling.maintenance.mode.will.cause.a.live.migration.of.all.running.instances.on.this.host.to.any.available.host = Enabling maintenance mode will cause a live migration of all running instances on this host to any available host.
-please.confirm.you.want.to.cancel.maintenance.for.the.host = Please confirm you want to cancel maintenance for the host
-please.confirm.you.want.to.force.a.reconnection.for.the.host = Please confirm you want to force a reconnection for the host
-please.confirm.you.want.to.remove.the.host.from.the.management.server = Please confirm you want to remove the host from the management server
Please.choose.a.OS.preference.for.this.host..Virtual.machines.will.always.be.allocated.to.hosts.with.an.OS.preference.that.matches.with.the.OS.type.of.the.template.chosen.for.the.virtual.machine.before.choosing.other.hosts. = Please choose a OS preference for this host. Virtual machines will always be allocated to hosts with an OS preference that matches with the OS type of the template chosen for the virtual machine before choosing other hosts.
please.confirm.you.want.to.delete.the.primary.storage = Please confirm you want to delete the primary storage
please.confirm.you.want.to.delete.the.secondary.storage = Please confirm you want to delete the secondary storage
diff --git a/ui/jsp/host.jsp b/ui/jsp/host.jsp
index f309db6a09c..9c5847b1a0f 100644
--- a/ui/jsp/host.jsp
+++ b/ui/jsp/host.jsp
@@ -918,27 +918,6 @@
-
-
-
- <%=t.t("enabling.maintenance.mode.will.cause.a.live.migration.of.all.running.instances.on.this.host.to.any.available.host")%>
-
-
-
-
- <%=t.t("please.confirm.you.want.to.cancel.maintenance.for.the.host")%>
-
-
-
-
- <%=t.t("please.confirm.you.want.to.force.a.reconnection.for.the.host")%>
-
-
-
-
- <%=t.t("please.confirm.you.want.to.remove.the.host.from.the.management.server")%>
-
-
diff --git a/ui/jsp/zone.jsp b/ui/jsp/zone.jsp
index efc4b1707f0..c6e7e87323d 100644
--- a/ui/jsp/zone.jsp
+++ b/ui/jsp/zone.jsp
@@ -563,12 +563,6 @@
-
-
- <%=t.t("please.confirm.you.want.to.delete.the.secondary.storage")%>
-
-
-
diff --git a/ui/scripts/cloud.core.host.js b/ui/scripts/cloud.core.host.js
index 4424a229fed..41d5d1f8430 100644
--- a/ui/scripts/cloud.core.host.js
+++ b/ui/scripts/cloud.core.host.js
@@ -66,17 +66,13 @@ function hostToRightPanel($midmenuItem1) {
}
function afterLoadHostJSP() {
- initDialog("dialog_add_host");
- initDialog("dialog_confirmation_enable_maintenance");
- initDialog("dialog_confirmation_cancel_maintenance");
- initDialog("dialog_confirmation_force_reconnect");
- initDialog("dialog_confirmation_remove_host");
+ initDialog("dialog_add_host");
initDialog("dialog_update_os");
// switch between different tabs
- var tabArray = [$("#tab_details"), $("#tab_primarystorage"), $("#tab_instance"), $("#tab_router"), $("#tab_systemvm"), $("#tab_statistics")];
- var tabContentArray = [$("#tab_content_details"), $("#tab_content_primarystorage"), $("#tab_content_instance"), $("#tab_content_router"), $("#tab_content_systemvm"), $("#tab_content_statistics")];
- var afterSwitchFnArray = [hostJsonToDetailsTab, hostJsonToPrimaryStorageTab, hostJsonToInstanceTab, hostJsonToRouterTab, hostJsonToSystemvmTab, hostJsonToStatisticsTab];
+ var tabArray = [$("#tab_details"), $("#tab_instance"), $("#tab_router"), $("#tab_systemvm"), $("#tab_statistics")];
+ var tabContentArray = [$("#tab_content_details"), $("#tab_content_instance"), $("#tab_content_router"), $("#tab_content_systemvm"), $("#tab_content_statistics")];
+ var afterSwitchFnArray = [hostJsonToDetailsTab, hostJsonToInstanceTab, hostJsonToRouterTab, hostJsonToSystemvmTab, hostJsonToStatisticsTab];
switchBetweenDifferentTabs(tabArray, tabContentArray, afterSwitchFnArray);
hostRefreshDataBinding();
@@ -197,174 +193,6 @@ function hostJsonToDetailsTab() {
$thisTab.find("#tab_container").show();
}
-function hostJsonToPrimaryStorageTab() {
- var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
- if($midmenuItem1 == null)
- return;
-
- var jsonObj = $midmenuItem1.data("jsonObj");
- if(jsonObj == null)
- return;
-
- var $thisTab = $("#right_panel_content #tab_content_primarystorage");
- $thisTab.find("#tab_container").hide();
- $thisTab.find("#tab_spinning_wheel").show();
-
- $.ajax({
- cache: false,
- data: createURL("command=listStoragePools&clusterid="+jsonObj.clusterid),
- dataType: "json",
- success: function(json) {
- var items = json.liststoragepoolsresponse.storagepool;
- var $container = $thisTab.find("#tab_container").empty();
- if(items != null && items.length > 0) {
- var $template = $("#primarystorage_tab_template");
- for(var i=0; i