From 3849da02acde2b0f09aa073f542fbb481c3c30c1 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 7 Sep 2009 13:35:09 +0000 Subject: [PATCH] Limit the size of the table to fit the screen. SVN:code[113] --- trunk/application/uilinkswizard.class.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/trunk/application/uilinkswizard.class.inc.php b/trunk/application/uilinkswizard.class.inc.php index 3a4cb450b0..ff56db516d 100644 --- a/trunk/application/uilinkswizard.class.inc.php +++ b/trunk/application/uilinkswizard.class.inc.php @@ -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' );