mirror of https://github.com/apache/cloudstack.git
VPC UI: Reload chart on perform detailView action
This commit is contained in:
parent
c6c85387fb
commit
b88da4e1c1
|
|
@ -188,6 +188,9 @@
|
|||
|
||||
if (section.listView) {
|
||||
$section.listView($.extend(true, {}, section, {
|
||||
onActionComplete: function() {
|
||||
$dashboardItem.closest('.vpc-network-chart').trigger('reload');
|
||||
},
|
||||
context: context
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,6 +104,10 @@
|
|||
cloudStack.ui.notifications.add(
|
||||
notification,
|
||||
function(args) {
|
||||
if (listViewArgs.onActionComplete) {
|
||||
listViewArgs.onActionComplete();
|
||||
}
|
||||
|
||||
if ($item.is(':visible') && !isHeader) {
|
||||
replaceItem(
|
||||
$item,
|
||||
|
|
@ -175,6 +179,10 @@
|
|||
|
||||
if (additional && additional.success) additional.success(args);
|
||||
|
||||
if (listViewArgs.onActionComplete == true) {
|
||||
listViewArgs.onActionComplete();
|
||||
}
|
||||
|
||||
cloudStack.ui.notifications.add(
|
||||
notification,
|
||||
|
||||
|
|
@ -213,6 +221,10 @@
|
|||
if (options.complete) {
|
||||
options.complete(args);
|
||||
}
|
||||
|
||||
if (listViewArgs.onActionComplete) {
|
||||
listViewArgs.onActionComplete();
|
||||
}
|
||||
},
|
||||
|
||||
{},
|
||||
|
|
@ -1187,6 +1199,10 @@
|
|||
$quickViewTooltip.hide();
|
||||
},
|
||||
onActionComplete: function() {
|
||||
if (listViewArgs.onActionComplete) {
|
||||
listViewArgs.onActionComplete();
|
||||
}
|
||||
|
||||
$tr.removeClass('loading').find('td:last .loading').remove();
|
||||
$quickViewTooltip.remove();
|
||||
}
|
||||
|
|
@ -1798,6 +1814,8 @@
|
|||
});
|
||||
}
|
||||
|
||||
detailViewArgs.data.onActionComplete = listViewArgs.onActionComplete;
|
||||
|
||||
createDetailView(
|
||||
detailViewArgs,
|
||||
function($detailView) { //complete(), callback funcion
|
||||
|
|
|
|||
Loading…
Reference in New Issue