mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 22:39:03 +02:00
(retrofit from trunk) Bug fix: support the display of HTML fields in the lists in the new portal.
SVN:2.3[4325]
This commit is contained in:
@@ -545,7 +545,7 @@ class BrowseBrickController extends BrickController
|
||||
$aRow[$key] = array(
|
||||
'level_alias' => $key,
|
||||
'id' => $value->GetKey(),
|
||||
'name' => $value->Get($aLevelsProperties[$key]['name_att']),
|
||||
'name' => $value->GetAsHTML($aLevelsProperties[$key]['name_att']),
|
||||
'class' => get_class($value),
|
||||
'action_rules_token' => static::PrepareActionRulesForItem($value, $key, $aLevelsProperties)
|
||||
);
|
||||
@@ -561,7 +561,7 @@ class BrowseBrickController extends BrickController
|
||||
$aRow[$key]['fields'] = array();
|
||||
foreach ($aLevelsProperties[$key]['fields'] as $aField)
|
||||
{
|
||||
$aRow[$key]['fields'][$aField['code']] = $value->Get($aField['code']);
|
||||
$aRow[$key]['fields'][$aField['code']] = $value->GetAsHTML($aField['code']);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -610,7 +610,7 @@ class BrowseBrickController extends BrickController
|
||||
$aItems[$sCurrentIndex] = array(
|
||||
'level_alias' => $aCurrentRowKeys[0],
|
||||
'id' => $aCurrentRowValues[0]->GetKey(),
|
||||
'name' => $aCurrentRowValues[0]->Get($aLevelsProperties[$aCurrentRowKeys[0]]['name_att']),
|
||||
'name' => $aCurrentRowValues[0]->GetAsHTML($aLevelsProperties[$aCurrentRowKeys[0]]['name_att']),
|
||||
'class' => get_class($aCurrentRowValues[0]),
|
||||
'subitems' => array(),
|
||||
'action_rules_token' => static::PrepareActionRulesForItem($aCurrentRowValues[0], $aCurrentRowKeys[0], $aLevelsProperties)
|
||||
|
||||
@@ -389,7 +389,7 @@ class ManageBrickController extends BrickController
|
||||
}
|
||||
else
|
||||
{
|
||||
$sValue = $oAttDef->GetValueLabel($oCurrentRow->Get($sItemAttr));
|
||||
$sValue = $oCurrentRow->GetAsHTML($sItemAttr);
|
||||
}
|
||||
unset($oAttDef);
|
||||
|
||||
|
||||
@@ -73,11 +73,11 @@
|
||||
// For the same reason, tooltip widget is created in "drawCallback" instead of here.
|
||||
if( (data.tooltip !== undefined) && (data.tooltip !== ''))
|
||||
{
|
||||
cellElem.html( $('<span></span>').attr('title', data.tooltip).attr('data-toggle', 'tooltip').text(data.name).prop('outerHTML') );
|
||||
cellElem.html( $('<span></span>').attr('title', data.tooltip).attr('data-toggle', 'tooltip').html(data.name).prop('outerHTML') );
|
||||
}
|
||||
else
|
||||
{
|
||||
cellElem.text(data.name);
|
||||
cellElem.html(data.name);
|
||||
}
|
||||
|
||||
// Building actions
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
// Preparing the cell data
|
||||
cellElem = (itemActions.length > 0) ? $('<a></a>') : $('<span></span>');
|
||||
cellElem.text(row.attributes[att_code].value);
|
||||
cellElem.html(row.attributes[att_code].value);
|
||||
// Building actions
|
||||
if(itemActions.length > 0)
|
||||
{
|
||||
@@ -227,7 +227,6 @@
|
||||
// Note : The '.off()' call is to unbind event from DataTables that where triggered before we could intercept anything
|
||||
$('#table-{{ sAreaId }}_filter input').off().on('keyup', function(){
|
||||
var me = this;
|
||||
console.log('here');
|
||||
clearTimeout(oKeyTimeout);
|
||||
oKeyTimeout = setTimeout(function() {
|
||||
oTable{{ sAreaId }}.search(me.value.latinise()).draw();
|
||||
|
||||
Reference in New Issue
Block a user