mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 8324: host page - make details tab as dault tab when a host is selected in middle menu.
This commit is contained in:
parent
cfd8cdbf20
commit
7b5783e4df
@ -46,25 +46,6 @@ function hostGetSearchParams() {
|
|||||||
return moreCriteria.join("");
|
return moreCriteria.join("");
|
||||||
}
|
}
|
||||||
|
|
||||||
function hostToMidmenu(jsonObj, $midmenuItem1) {
|
|
||||||
$midmenuItem1.attr("id", getMidmenuId(jsonObj));
|
|
||||||
$midmenuItem1.data("jsonObj", jsonObj);
|
|
||||||
|
|
||||||
var $iconContainer = $midmenuItem1.find("#icon_container").show();
|
|
||||||
$iconContainer.find("#icon").attr("src", "images/midmenuicon_host.png");
|
|
||||||
|
|
||||||
$midmenuItem1.find("#first_row").text(fromdb(jsonObj.name).substring(0,25));
|
|
||||||
$midmenuItem1.find("#second_row").text(jsonObj.ipaddress.substring(0,25));
|
|
||||||
|
|
||||||
updateHostStateInMidMenu(jsonObj, $midmenuItem1);
|
|
||||||
}
|
|
||||||
|
|
||||||
function hostToRightPanel($midmenuItem1) {
|
|
||||||
copyActionInfoFromMidMenuToRightPanel($midmenuItem1);
|
|
||||||
$("#right_panel_content").data("$midmenuItem1", $midmenuItem1);
|
|
||||||
hostJsonToDetailsTab();
|
|
||||||
}
|
|
||||||
|
|
||||||
function afterLoadHostJSP() {
|
function afterLoadHostJSP() {
|
||||||
initDialog("dialog_add_host");
|
initDialog("dialog_add_host");
|
||||||
initDialog("dialog_update_os");
|
initDialog("dialog_update_os");
|
||||||
@ -83,6 +64,25 @@ function hostRefreshDataBinding() {
|
|||||||
bindAddHostButton($hostNode);
|
bindAddHostButton($hostNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hostToMidmenu(jsonObj, $midmenuItem1) {
|
||||||
|
$midmenuItem1.attr("id", getMidmenuId(jsonObj));
|
||||||
|
$midmenuItem1.data("jsonObj", jsonObj);
|
||||||
|
|
||||||
|
var $iconContainer = $midmenuItem1.find("#icon_container").show();
|
||||||
|
$iconContainer.find("#icon").attr("src", "images/midmenuicon_host.png");
|
||||||
|
|
||||||
|
$midmenuItem1.find("#first_row").text(fromdb(jsonObj.name).substring(0,25));
|
||||||
|
$midmenuItem1.find("#second_row").text(jsonObj.ipaddress.substring(0,25));
|
||||||
|
|
||||||
|
updateHostStateInMidMenu(jsonObj, $midmenuItem1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function hostToRightPanel($midmenuItem1) {
|
||||||
|
copyActionInfoFromMidMenuToRightPanel($midmenuItem1);
|
||||||
|
$("#right_panel_content").data("$midmenuItem1", $midmenuItem1);
|
||||||
|
$("#tab_details").click();
|
||||||
|
}
|
||||||
|
|
||||||
function hostJsonToDetailsTab() {
|
function hostJsonToDetailsTab() {
|
||||||
var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
|
var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
|
||||||
if($midmenuItem1 == null) {
|
if($midmenuItem1 == null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user