Advanced Search

generate id on div "result list outer" and use this id on search widget initialisation

SVN:b1162[5393]
This commit is contained in:
Eric Espié
2018-03-08 14:53:57 +00:00
parent fa60322ff1
commit 8ce708dade
8 changed files with 19 additions and 9 deletions

View File

@@ -304,7 +304,8 @@ class UILinksWidgetDirect
}
$bOpen = MetaModel::GetConfig()->Get('legacy_search_drawer_open');
$oBlock = new DisplayBlock($oFilter, 'search', false);
$sHtml .= $oBlock->GetDisplay($oPage, "SearchFormToAdd_{$this->sInputid}", array('open' => $bOpen));
$sHtml .= $oBlock->GetDisplay($oPage, "SearchFormToAdd_{$this->sInputid}",
array('open' => $bOpen, 'table_id' => "SearchResultsToAdd_{$this->sInputid}"));
$sHtml .= "<form id=\"ObjectsAddForm_{$this->sInputid}\">\n";
$sHtml .= "<div id=\"SearchResultsToAdd_{$this->sInputid}\" style=\"vertical-align:top;background: #fff;height:100%;overflow:auto;padding:0;border:0;\">\n";
$sHtml .= "<div style=\"background: #fff; border:0; text-align:center; vertical-align:middle;\"><p>".Dict::S('UI:Message:EmptyList:UseSearchForm')."</p></div>\n";