mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°3678 - Portal : a modification of field cannot hide another one
This commit is contained in:
@@ -151,9 +151,16 @@ $(function()
|
||||
// Intended for overloading in derived classes
|
||||
_onUpdateSuccess: function(oData, sFormPath)
|
||||
{
|
||||
var me = this;
|
||||
if(oData.form.hidden_fields !== undefined)
|
||||
{
|
||||
$.each(oData.form.hidden_fields, function( index, value ) {
|
||||
me.element.find('[data-form-path="' + sFormPath + '"][data-field-id="'+value+'"][data-attribute-flag-hidden="false"]').remove();
|
||||
});
|
||||
}
|
||||
if(oData.form.updated_fields !== undefined)
|
||||
{
|
||||
this.element.find('[data-form-path="' + sFormPath + '"]').trigger('update_form', {updated_fields: oData.form.updated_fields});
|
||||
me.element.find('[data-form-path="' + sFormPath + '"]').trigger('update_form', {updated_fields: oData.form.updated_fields});
|
||||
}
|
||||
},
|
||||
// Intended for overloading in derived classes
|
||||
|
||||
Reference in New Issue
Block a user