search widget

- displayBlock "list" aExtraParams exposition in js

SVN:b1162[5429]
This commit is contained in:
Bruno Da Silva
2018-03-14 16:35:35 +00:00
parent 42af530c63
commit ed02758940
3 changed files with 24 additions and 5 deletions

View File

@@ -284,17 +284,22 @@ class DisplayBlock
}
if ($this->m_sStyle != 'search') // Search form need to extract result list extra data, the simplest way is to expose this configuration
if ($this->m_sStyle == 'list') // Search form need to extract result list extra data, the simplest way is to expose this configuration
{
$listJsonExtraParams = json_encode(json_encode($aExtraParams));
$oPage->add_ready_script("
$('#$sId').data('sExtraParams', \"$sExtraParams\");
$('#$sId').data('bAutoReload', \"$sExtraParams\");
$('#$sId').data('sExtraParams', ".$listJsonExtraParams.");
$('#$sId').data('bAutoReload', \"".(int) $bAutoReload."\");
console.debug($('#$sId').data());
console.debug($('#$sId'));
console.debug('#$sId');
");
// $oPage->add_ready_script("console.debug($('#Menu_UserRequest_OpenRequests').data());");
}