From ece8b8c423a46c5be84171520ffd130ec25d9249 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Wed, 3 Apr 2013 14:52:16 -0700 Subject: [PATCH] NICs, add action: Fix for when detail view isn't present anymore --- ui/scripts/ui/widgets/detailView.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js index cd1135cd4b3..7b202ef5d0d 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') + ); + } } } )