mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 18:38:29 +02:00
adding optional submit_value parameter to widget getValue() method to let widgets know value is needed for submit/getValues
This commit is contained in:
@ -541,13 +541,15 @@ export class et2_htmlarea extends et2_editableWidget implements et2_IResizeable
|
||||
this.value = _value;
|
||||
}
|
||||
|
||||
getValue()
|
||||
/**
|
||||
* @param boolean submit_value true: call by etemplate2.(getValues|submit|postSubmit)()
|
||||
*/
|
||||
getValue(submit_value? : boolean)
|
||||
{
|
||||
if (this.editor)
|
||||
{
|
||||
// are we called by etemplate2.getValues() (has a closure result)
|
||||
// not always setting it, as getValue() is called a lot, e.g. to test input is dirty
|
||||
if (this.options.applyDefaultFont && this.getInstanceManager().get_values)
|
||||
// not always applying defaut font, as getValue() is called a lot, e.g. to test input is dirty
|
||||
if (this.options.applyDefaultFont && submit_value)
|
||||
{
|
||||
this.applyDefaultFont();
|
||||
}
|
||||
|
Reference in New Issue
Block a user