CS-15478: UI cosmetic fix for empty buttons/viewAll section.

This commit is contained in:
olgasmola 2012-07-25 11:33:35 +03:00
parent dc19c86fde
commit 85a13dfe1a
1 changed files with 4 additions and 1 deletions

View File

@ -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) {
$('<div>')
.addClass('view-all')