Merge remote-tracking branch 'origin/support/3.2' into develop

This commit is contained in:
jf-cbd
2026-04-07 17:38:21 +02:00

View File

@@ -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