Advanced Search: Links n:n

SVN:b1162[5451]
This commit is contained in:
Eric Espié
2018-03-16 14:35:25 +00:00
parent 272e8eac4f
commit 187f7e591e
2 changed files with 8 additions and 0 deletions

View File

@@ -410,6 +410,7 @@ EOF
$sHtml .= $oBlock->GetDisplay($oPage, "SearchFormToAdd_{$this->m_sAttCode}{$this->m_sNameSuffix}",
array(
'open' => $bOpen,
'menu' => false,
'table_id' => "SearchResultsToAdd_{$this->m_sAttCode}{$this->m_sNameSuffix}",
'table_id2' => 'add_'.$this->m_sAttCode,
'table_inner_id' => "ResultsToAdd_{$this->m_sAttCode}{$this->m_sNameSuffix}",

View File

@@ -127,6 +127,13 @@ function LinksWidget(id, sClass, sAttCode, iInputId, sSuffix, bDuplicates, oWizH
this.SearchObjectsToAdd = function()
{
$('#count_'+me.id).change(function () {
var c = this.value;
me.UpdateButtons(c);
});
FixSearchFormsDisposition();
me.UpdateSizes(null, null);
$("#fs_SearchFormToAdd_"+me.id).trigger('itop.search.form.submit');
return false; // Don't submit the form, stay in the current page !