Переглянути джерело

Limit the size of the table to fit the screen.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@113 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 16 роки тому
батько
коміт
96518298bf
1 змінених файлів з 7 додано та 0 видалено
  1. 7 0
      application/uilinkswizard.class.inc.php

+ 7 - 0
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'
 			);