mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Show midmenu items in action in blue background
This commit is contained in:
parent
51362d8479
commit
7d18462d76
@ -200,9 +200,11 @@ function clickInstanceGroupHeader($arrowIcon) {
|
|||||||
var isAsyncJob = $t.data("isAsyncJob");
|
var isAsyncJob = $t.data("isAsyncJob");
|
||||||
var asyncJobResponse = $t.data("asyncJobResponse");
|
var asyncJobResponse = $t.data("asyncJobResponse");
|
||||||
var jobIdMap = {};
|
var jobIdMap = {};
|
||||||
for(var id in selectedItemIds) {
|
for(var id in selectedItemIds) {
|
||||||
$("#midmenuItemVm_"+id).find("#spinning_wheel").show();
|
var midmenuItem = $("#midmenuItemVm_"+id);
|
||||||
$("#midmenuItemVm_"+id).find("#info_icon").hide();
|
midmenuItem.find("#content").removeClass("selected").addClass("adding");
|
||||||
|
midmenuItem.find("#spinning_wheel").addClass("midmenu_addingloader").show();
|
||||||
|
midmenuItem.find("#info_icon").hide();
|
||||||
if(isAsyncJob == true) {
|
if(isAsyncJob == true) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: createURL("command="+api+"&id="+id+"&response=json"),
|
data: createURL("command="+api+"&id="+id+"&response=json"),
|
||||||
@ -227,6 +229,7 @@ function clickInstanceGroupHeader($arrowIcon) {
|
|||||||
$("body").stopTime(timerKey);
|
$("body").stopTime(timerKey);
|
||||||
var itemId = jobIdMap[jobId];
|
var itemId = jobIdMap[jobId];
|
||||||
$item = $("#midmenuItemVm_"+itemId);
|
$item = $("#midmenuItemVm_"+itemId);
|
||||||
|
$item.find("#content").removeClass("adding");
|
||||||
$item.find("#spinning_wheel").hide();
|
$item.find("#spinning_wheel").hide();
|
||||||
if (result.jobstatus == 1) { // Succeeded
|
if (result.jobstatus == 1) { // Succeeded
|
||||||
$item.find("#info_icon").removeClass("error").show();
|
$item.find("#info_icon").removeClass("error").show();
|
||||||
@ -808,6 +811,7 @@ function clickInstanceGroupHeader($arrowIcon) {
|
|||||||
var $t = $("#midmenu_item_vm").clone();
|
var $t = $("#midmenu_item_vm").clone();
|
||||||
$t.find("#vm_name").text("Adding....");
|
$t.find("#vm_name").text("Adding....");
|
||||||
$t.find("#ip_address_container #label").hide();
|
$t.find("#ip_address_container #label").hide();
|
||||||
|
$t.find("#content").addClass("adding");
|
||||||
$t.find("#spinning_wheel").show();
|
$t.find("#spinning_wheel").show();
|
||||||
$("#midmenu_container").append($t.show());
|
$("#midmenu_container").append($t.show());
|
||||||
|
|
||||||
@ -833,6 +837,7 @@ function clickInstanceGroupHeader($arrowIcon) {
|
|||||||
return; //Job has not completed
|
return; //Job has not completed
|
||||||
} else {
|
} else {
|
||||||
$("body").stopTime(timerKey);
|
$("body").stopTime(timerKey);
|
||||||
|
$t.find("#content").removeClass("adding");
|
||||||
$t.find("#spinning_wheel").hide();
|
$t.find("#spinning_wheel").hide();
|
||||||
if (result.jobstatus == 1) {
|
if (result.jobstatus == 1) {
|
||||||
// Succeeded
|
// Succeeded
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user