cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [03/22] git commit: updated refs/heads/master to c7143be
Date Tue, 30 Apr 2013 19:20:25 GMT
NICs, add action: Fix for when detail view isn't present anymore


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ece8b8c4
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ece8b8c4
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ece8b8c4

Branch: refs/heads/master
Commit: ece8b8c423a46c5be84171520ffd130ec25d9249
Parents: 9bd6692
Author: Brian Federle <brian.federle@citrix.com>
Authored: Wed Apr 3 14:52:16 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Wed Apr 3 14:52:16 2013 -0700

----------------------------------------------------------------------
 ui/scripts/ui/widgets/detailView.js |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ece8b8c4/ui/scripts/ui/widgets/detailView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js
index cd1135c..7b202ef 100644
--- a/ui/scripts/ui/widgets/detailView.js
+++ b/ui/scripts/ui/widgets/detailView.js
@@ -1087,10 +1087,12 @@
                     { actions: tabData.actions, actionName: 'add' }, {
                       noRefresh: true,
                       complete: function(args) {
-                        loadTabContent(
-                          $detailView.find('div.detail-group:visible'),
-                          $detailView.data('view-args')
-                        );
+                        if ($detailView.is(':visible')) {
+                          loadTabContent(
+                            $detailView.find('div.detail-group:visible'),
+                            $detailView.data('view-args')
+                          );
+                        }
                       }
                     }
                   )


Mime
View raw message