mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°2313 - Markup extensibility: Add meta information and hooks
Admin. console: - Class and id on object form - Class current and target state on object transition form - Object form mode (view/edit/create/stimulus) - Object attributes: Attribute code, attribute definition class and raw value - Navigation menu: Their IDs on group and items - Actions menu: Their IDs on items Portal: - Object attributes: Attribute code, attribute definition class and raw value
This commit is contained in:
@@ -276,6 +276,14 @@ $(function()
|
||||
{
|
||||
oFieldContainer.html(oField.html);
|
||||
}
|
||||
// HTML metadata
|
||||
if( (oField.html_metadata !== undefined) && (Object.keys(oField.html_metadata).length > 0) )
|
||||
{
|
||||
for(var i in oField.html_metadata)
|
||||
{
|
||||
oFieldContainer.attr('data-' + i, oField.html_metadata[i]);
|
||||
}
|
||||
}
|
||||
// JS files
|
||||
if( (oField.js_files !== undefined) && (oField.js_files.length > 0) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user