mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
Limit the size of the table to fit the screen.
SVN:trunk[113]
This commit is contained in:
@@ -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'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user