mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
Limit the size of the table to fit the screen.
SVN:code[113]
This commit is contained in:
@@ -146,6 +146,13 @@ class UILinksWizard
|
|||||||
function(data)
|
function(data)
|
||||||
{
|
{
|
||||||
$('#SearchResultsToAdd').html(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'
|
'html'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user