mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:21 +01:00
For multiselectboxes, we need to do an array comparison for dirty, or it will always fail (be dirty)
This commit is contained in:
parent
3cfbcc8cf1
commit
c19f95ded8
@ -670,6 +670,19 @@ var et2_selectbox = et2_inputWidget.extend(
|
|||||||
this.value = this._super.apply(this, arguments);
|
this.value = this._super.apply(this, arguments);
|
||||||
}
|
}
|
||||||
return this.value;
|
return this.value;
|
||||||
|
},
|
||||||
|
|
||||||
|
isDirty: function() {
|
||||||
|
if(this.input == null)
|
||||||
|
{
|
||||||
|
var value = this.getValue();
|
||||||
|
// Array comparison
|
||||||
|
return !($j(this._oldValue).not(value).length == 0 && $j(value).not(this._oldValue).length == 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return this._super.apply(this, arguments);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
et2_register_widget(et2_selectbox, ["menupopup", "listbox", "select", "select-cat",
|
et2_register_widget(et2_selectbox, ["menupopup", "listbox", "select", "select-cat",
|
||||||
|
Loading…
Reference in New Issue
Block a user