NICs, add action: Fix for when detail view isn't present anymore

This commit is contained in:
Brian Federle 2013-04-03 14:52:16 -07:00
parent 9bd6692be0
commit ece8b8c423
1 changed files with 6 additions and 4 deletions

View File

@ -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')
);
}
}
}
)