From 85a13dfe1a57454fa896efde296ae76ae138485d Mon Sep 17 00:00:00 2001 From: olgasmola Date: Wed, 25 Jul 2012 11:33:35 +0300 Subject: [PATCH] CS-15478: UI cosmetic fix for empty buttons/viewAll section. --- ui/scripts/ui/widgets/detailView.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js index c0147915d89..b792bcf32ac 100644 --- a/ui/scripts/ui/widgets/detailView.js +++ b/ui/scripts/ui/widgets/detailView.js @@ -836,7 +836,7 @@ actionFilter: actionFilter, data: data, context: $detailView.data('view-args').context - }).prependTo($firstRow.closest('div.detail-group').closest('.details')); + }); // 'View all' button var showViewAll = detailViewArgs.viewAll ? @@ -846,6 +846,9 @@ context: context }) : true ) : true; + if ($actions.find('div.action').size() || (detailViewArgs.viewAll && showViewAll)) { + $actions.prependTo($firstRow.closest('div.detail-group').closest('.details')); + } if (detailViewArgs.viewAll && showViewAll) { $('
') .addClass('view-all')