mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
new UI - volume page - implement detach disk action.
This commit is contained in:
parent
c8160cf0d6
commit
ab66269038
@ -24,22 +24,34 @@
|
|||||||
<div class="contentbox" id="right_panel_content">
|
<div class="contentbox" id="right_panel_content">
|
||||||
<div class="info_detailbox errorbox" id="after_action_info_container" style="display:none">
|
<div class="info_detailbox errorbox" id="after_action_info_container" style="display:none">
|
||||||
<p id="after_action_info"></p>
|
<p id="after_action_info"></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_actionpanel">
|
||||||
|
<div class="grid_actionbox" id="volume_action_link">
|
||||||
|
<div class="grid_actionsdropdown_box" id="volume_action_menu" style="display:none">
|
||||||
|
<ul class="actionsdropdown_boxlist" id="action_list">
|
||||||
|
<!--
|
||||||
|
<li> <a href="#"> Delete </a> </li>
|
||||||
|
<li> <a href="#"> Attach Disk </a> </li>
|
||||||
|
-->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--
|
||||||
|
<div class="grid_editbox"></div>
|
||||||
|
-->
|
||||||
|
</div>
|
||||||
|
<div class="gridheader_loaderbox" id="spinning_wheel" style="display:none">
|
||||||
|
<div class="gridheader_loader" id="icon"></div>
|
||||||
|
<p id="description"> Waiting … </p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="tabbox" style="margin-top:15px;">
|
<div class="tabbox" style="margin-top:15px;">
|
||||||
<div class="content_tabs on">
|
<div class="content_tabs on">
|
||||||
<%=t.t("Details")%></div>
|
<%=t.t("Details")%></div>
|
||||||
<div class="grid_actionbox" id="volume_action_link" style="margin:-4px 0 0 0;background-color:yello;display:block">
|
|
||||||
<div class="grid_actionsdropdown_box" id="volume_action_menu" style="display: block;background-color:green">
|
|
||||||
<ul class="actionsdropdown_boxlist" id="action_list">
|
</div>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="gridheader_loaderbox" id="spinning_wheel" style="display:none">
|
|
||||||
<div class="gridheader_loader" id="icon"></div>
|
|
||||||
<p id="description"> Waiting … </p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="grid_container">
|
<div class="grid_container">
|
||||||
<div class="grid_rows odd">
|
<div class="grid_rows odd">
|
||||||
<div class="grid_row_cell" style="width: 20%;">
|
<div class="grid_row_cell" style="width: 20%;">
|
||||||
|
|||||||
@ -214,7 +214,7 @@ function buildActionLinkForSingleObject(label, actionMap, $actionMenu, listAPIMa
|
|||||||
}
|
}
|
||||||
|
|
||||||
function doActionToSingleObject(id, $actionLink, apiCommand, listAPIMap, $singleObject) {
|
function doActionToSingleObject(id, $actionLink, apiCommand, listAPIMap, $singleObject) {
|
||||||
debugger;
|
//debugger;
|
||||||
var label = $actionLink.data("label");
|
var label = $actionLink.data("label");
|
||||||
var inProcessText = $actionLink.data("inProcessText");
|
var inProcessText = $actionLink.data("inProcessText");
|
||||||
var isAsyncJob = $actionLink.data("isAsyncJob");
|
var isAsyncJob = $actionLink.data("isAsyncJob");
|
||||||
@ -234,7 +234,7 @@ function doActionToSingleObject(id, $actionLink, apiCommand, listAPIMap, $single
|
|||||||
data: createURL(apiCommand),
|
data: createURL(apiCommand),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
debugger;
|
//debugger;
|
||||||
var jobId = json[asyncJobResponse].jobid;
|
var jobId = json[asyncJobResponse].jobid;
|
||||||
var timerKey = "asyncJob_" + jobId;
|
var timerKey = "asyncJob_" + jobId;
|
||||||
$("body").everyTime(
|
$("body").everyTime(
|
||||||
@ -276,7 +276,7 @@ function doActionToSingleObject(id, $actionLink, apiCommand, listAPIMap, $single
|
|||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
//debugger;
|
//debugger;
|
||||||
$("body").stopTime(timerKey);
|
$("body").stopTime(timerKey);
|
||||||
handleErrorInSingleObject(XMLHttpResponse, $singleObject);
|
handleErrorInSingleObject(XMLHttpResponse, $singleObject, label);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -285,7 +285,7 @@ function doActionToSingleObject(id, $actionLink, apiCommand, listAPIMap, $single
|
|||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
//debugger;
|
//debugger;
|
||||||
handleErrorInSingleObject(XMLHttpResponse, $singleObject);
|
handleErrorInSingleObject(XMLHttpResponse, $singleObject, label);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -319,16 +319,16 @@ function doActionToSingleObject(id, $actionLink, apiCommand, listAPIMap, $single
|
|||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
//debugger;
|
//debugger;
|
||||||
handleErrorInSingleObject(XMLHttpResponse, $singleObject);
|
handleErrorInSingleObject(XMLHttpResponse, $singleObject, label);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//Sync job (end) *****
|
//Sync job (end) *****
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleErrorInSingleObject(XMLHttpResponse, $singleObject) {
|
function handleErrorInSingleObject(XMLHttpResponse, $singleObject, label) {
|
||||||
//debugger;
|
//debugger;
|
||||||
$spinningWheel.hide();
|
$singleObject.find("#spinning_wheel").hide();
|
||||||
|
|
||||||
var errorMsg = "";
|
var errorMsg = "";
|
||||||
if(XMLHttpResponse.responseText != null & XMLHttpResponse.responseText.length > 0) {
|
if(XMLHttpResponse.responseText != null & XMLHttpResponse.responseText.length > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user