From 0b2e5f1b17001574961e27f242e12fb5d453c736 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 25 Oct 2012 13:59:12 -0700 Subject: [PATCH] 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. --- ui/scripts/ui/widgets/detailView.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js index 32829684a4a..838bfbddcf4 100644 --- a/ui/scripts/ui/widgets/detailView.js +++ b/ui/scripts/ui/widgets/detailView.js @@ -104,6 +104,10 @@ context: context, $detailView: $detailView, complete: function(args) { + if (viewArgs && viewArgs.onPerformAction) { + viewArgs.onPerformAction(); + } + // Set loading appearance var $loading = $('
').addClass('loading-overlay'); @@ -123,6 +127,10 @@ // Success function(args) { + if (viewArgs && viewArgs.onActionComplete) { + viewArgs.onActionComplete(); + } + if (!$detailView.parents('html').size()) return; $loading.remove();