CS-16567: Support quickview for custom actions

For custom actions (such as enable static NAT), fix instance list row
not updating when accessing via the quickview.
This commit is contained in:
Brian Federle 2012-10-25 13:59:12 -07:00
parent 525f96b7ae
commit 0b2e5f1b17
1 changed files with 8 additions and 0 deletions

View File

@ -104,6 +104,10 @@
context: context,
$detailView: $detailView,
complete: function(args) {
if (viewArgs && viewArgs.onPerformAction) {
viewArgs.onPerformAction();
}
// Set loading appearance
var $loading = $('<div>').addClass('loading-overlay');
@ -123,6 +127,10 @@
// Success
function(args) {
if (viewArgs && viewArgs.onActionComplete) {
viewArgs.onActionComplete();
}
if (!$detailView.parents('html').size()) return;
$loading.remove();