mirror of https://github.com/apache/cloudstack.git
new UI - resource page - update host total number after adding host(s) from Add Host shortcut dialog.
This commit is contained in:
parent
0653d6d7f6
commit
da6a3a1afc
|
|
@ -502,10 +502,14 @@ function initAddPodShortcut() {
|
|||
|
||||
showMiddleMenu();
|
||||
|
||||
var items = json.addhostresponse.host;
|
||||
var hostTotal = parseInt($("#host_total").text());
|
||||
hostTotal = hostTotal + items.length;
|
||||
$("#host_total").text(hostTotal.toString());
|
||||
|
||||
/*
|
||||
var $midmenuItem1 = $("#midmenu_item").clone();
|
||||
$("#midmenu_container").append($midmenuItem1.fadeIn("slow"));
|
||||
var items = json.addhostresponse.host;
|
||||
$("#midmenu_container").append($midmenuItem1.fadeIn("slow"));
|
||||
hostToMidmenu(items[0], $midmenuItem1);
|
||||
bindClickToMidMenu($midmenuItem1, hostToRightPanel, hostGetMidmenuId);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue