mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
Advanced Search: Links n:n
SVN:b1162[5451]
This commit is contained in:
@@ -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}",
|
||||
|
||||
@@ -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 !
|
||||
|
||||
Reference in New Issue
Block a user