mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 15:52:24 +02:00
Merge remote-tracking branch 'origin/support/3.2' into develop
This commit is contained in:
@@ -189,12 +189,15 @@ $(function()
|
|||||||
this.buildData.script_code = '';
|
this.buildData.script_code = '';
|
||||||
this.buildData.style_code = '';
|
this.buildData.style_code = '';
|
||||||
|
|
||||||
for (var i in oData.updated_fields)
|
for (let i in oData.updated_fields)
|
||||||
{
|
{
|
||||||
var oUpdatedField = oData.updated_fields[i];
|
const oUpdatedField = oData.updated_fields[i];
|
||||||
|
const oPreviousField = this.options.fields_list[oUpdatedField.id];
|
||||||
|
if (!oPreviousField || JSON.stringify(oPreviousField) !== JSON.stringify(oUpdatedField)) {
|
||||||
this.options.fields_list[oUpdatedField.id] = oUpdatedField;
|
this.options.fields_list[oUpdatedField.id] = oUpdatedField;
|
||||||
this._prepareField(oUpdatedField.id);
|
this._prepareField(oUpdatedField.id);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Adding code to the dom
|
// Adding code to the dom
|
||||||
// Note : We use text() instead of append(), otherwise the code will be interpreted as DOM tags (text + <img /> + ...) and can break some browsers
|
// Note : We use text() instead of append(), otherwise the code will be interpreted as DOM tags (text + <img /> + ...) and can break some browsers
|
||||||
|
|||||||
Reference in New Issue
Block a user