diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index cffed5035..d14dd6b4f 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -727,22 +727,38 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay if ($oSet->Count() > MetaModel::GetConfig()->GetMaxDisplayLimit()) { $iCount = $oSet->Count(); + if ($bSelectMode) + { + $sHeader = Dict::Format('UI:Pagination:HeaderSelection', '0', ''); + } + else + { + $sHeader = Dict::Format('UI:Pagination:HeaderNoSelection', '0'); + } + $sCombo = ''; + $sPages = Dict::S('UI:Pagination:PagesLabel'); + $sPageSizeCombo = Dict::Format('UI:Pagination:PageSize', $sCombo); $sHtml = << -

0 items.   item(s) selected.

-

+

$sHeader

+

Pages:
- +
$sPages - items per page.$sPageSizeCombo  
@@ -751,7 +767,6 @@ $sHtml = EOF .$sHtml; - //$oP->add_ready_script("table.tablesorter( { headers: { 0: {sorter: false}}, widgets: ['myZebra', 'truncatedList']} ).tablesorterPager({container: $('#pager')});\n"); $aArgs = $oSet->GetArgs(); $sExtraParams = addslashes(str_replace('"', "'", json_encode(array_merge($aExtraParams, $aArgs)))); // JSON encode, change the style of the quotes and escape them $sSelectMode = ''; @@ -773,7 +788,7 @@ EOF { $sHeaders = 'headers: { 0: {sorter: false}},'; } - $oPage->add_ready_script("$('#{$iListId} table.listResults').tablesorter( { $sHeaders widgets: ['myZebra', 'truncatedList']} );\n"); + $oPage->add_ready_script("$('#{$iListId} table.listResults').tableHover().tablesorter( { $sHeaders widgets: ['myZebra', 'truncatedList']} );\n"); // Manage how we update the 'Ok/Add' buttons that depend on the number of selected items if (isset($aExtraParams['cssCount'])) {