Limit the size of the table to fit the screen.

SVN:trunk[113]
This commit is contained in:
Denis Flaven
2009-09-07 13:35:09 +00:00
parent f9e21e942e
commit 86593b6840

View File

@@ -146,6 +146,13 @@ class UILinksWizard
function(data)
{
$('#SearchResultsToAdd').html(data);
nb_rows = $('#SearchResultsToAdd table.listResults tr').length;
if(nb_rows > 10)
{
$('#SearchResultsToAdd table.listResults tbody').attr('height', '300px');
$('#SearchResultsToAdd .listResults tbody').css('overflow', 'auto');
}
},
'html'
);