forked from extern/egroupware
Add get_value() to match legacy
This commit is contained in:
parent
538e483499
commit
d127cae5c6
@ -435,6 +435,11 @@ export const Et2InputWidget = <T extends Constructor>(superClass: T) =>
|
|||||||
this.value = new_value;
|
this.value = new_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_value()
|
||||||
|
{
|
||||||
|
return this.getValue();
|
||||||
|
}
|
||||||
|
|
||||||
getValue()
|
getValue()
|
||||||
{
|
{
|
||||||
return typeof this.serializedValue !== "undefined" ? this.serializedValue : this.modalValue;
|
return typeof this.serializedValue !== "undefined" ? this.serializedValue : this.modalValue;
|
||||||
@ -443,11 +448,11 @@ export const Et2InputWidget = <T extends Constructor>(superClass: T) =>
|
|||||||
isDirty()
|
isDirty()
|
||||||
{
|
{
|
||||||
let value = this.getValue();
|
let value = this.getValue();
|
||||||
if (typeof value !== typeof this._oldValue)
|
if(typeof value !== typeof this._oldValue)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (this._oldValue === value)
|
if(this._oldValue === value)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user