mirror of https://github.com/apache/cloudstack.git
bug 8460: fix refresh button on cluster page and secondary storage page.
This commit is contained in:
parent
83209e53bc
commit
84ef5458e5
|
|
@ -1685,8 +1685,7 @@ function vmJsonToDetailsTab(){
|
|||
var $thisTab = $("#right_panel_content").find("#tab_content_details");
|
||||
$thisTab.find("#tab_container").hide();
|
||||
$thisTab.find("#tab_spinning_wheel").show();
|
||||
|
||||
/*
|
||||
|
||||
var id = jsonObj.id;
|
||||
$.ajax({
|
||||
data: createURL("command=listVirtualMachines&id="+id),
|
||||
|
|
@ -1701,8 +1700,7 @@ function vmJsonToDetailsTab(){
|
|||
}
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
resetViewConsoleAction(jsonObj, $thisTab);
|
||||
setVmStateInRightPanel(jsonObj.state, $thisTab.find("#state"));
|
||||
$thisTab.find("#ipAddress").text(fromdb(jsonObj.ipaddress));
|
||||
|
|
|
|||
|
|
@ -126,16 +126,11 @@ function buildZoneTree() {
|
|||
var $thisNode = $(this);
|
||||
$("#right_panel").load("jsp/secondarystorage.jsp", function(){
|
||||
currentRightPanelJSP = "jsp/secondarystorage.jsp";
|
||||
|
||||
/*
|
||||
|
||||
$(this).data("onRefreshFn", function() {
|
||||
var zoneObj = $midmenuItem1.data("jsonObj");
|
||||
if(zoneObj == null)
|
||||
return;
|
||||
$("#zone_"+zoneObj.id).find("#secondarystorage_header").click();
|
||||
secondaryStorageJsonToDetailsTab();
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
afterLoadSecondaryStorageJSP($thisNode);
|
||||
});
|
||||
}
|
||||
|
|
@ -304,7 +299,7 @@ function buildZoneTree() {
|
|||
var $topButtonContainer = clearButtonsOnTop();
|
||||
$("#top_buttons").appendTo($topButtonContainer);
|
||||
|
||||
$thisNode.data("onRefreshFn", function() {
|
||||
$(this).data("onRefreshFn", function() {
|
||||
clusterJsonToDetailsTab();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue