You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2012/10/25 22:59:59 UTC
git commit: CS-16567: Support quickview for custom actions
Updated Branches:
refs/heads/master 525f96b7a -> 0b2e5f1b1
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.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0b2e5f1b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0b2e5f1b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0b2e5f1b
Branch: refs/heads/master
Commit: 0b2e5f1b17001574961e27f242e12fb5d453c736
Parents: 525f96b
Author: Brian Federle <br...@citrix.com>
Authored: Thu Oct 25 13:59:12 2012 -0700
Committer: Brian Federle <br...@citrix.com>
Committed: Thu Oct 25 13:59:53 2012 -0700
----------------------------------------------------------------------
ui/scripts/ui/widgets/detailView.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0b2e5f1b/ui/scripts/ui/widgets/detailView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js
index 3282968..838bfbd 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 = $('<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();