mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 00:39:19 +01:00
Fix onchange event not working for date-range widget
This commit is contained in:
parent
4e54c2b5a3
commit
118b9c0e92
@ -1528,12 +1528,18 @@ export class et2_date_range extends et2_inputWidget
|
|||||||
this.from = <et2_date>et2_createWidget('date',{
|
this.from = <et2_date>et2_createWidget('date',{
|
||||||
id: this.id+'[from]',
|
id: this.id+'[from]',
|
||||||
blur: egw.lang('From'),
|
blur: egw.lang('From'),
|
||||||
onchange() { widget.to.set_min(widget.from.getValue()); }
|
onchange(_node,_widget) {
|
||||||
|
widget.to.set_min(widget.from.getValue());
|
||||||
|
if (_node instanceof jQuery) widget.onchange.call(widget, _widget, widget);
|
||||||
|
}
|
||||||
},this);
|
},this);
|
||||||
this.to = <et2_date>et2_createWidget('date',{
|
this.to = <et2_date>et2_createWidget('date',{
|
||||||
id: this.id+'[to]',
|
id: this.id+'[to]',
|
||||||
blur: egw.lang('To'),
|
blur: egw.lang('To'),
|
||||||
onchange() {widget.from.set_max(widget.to.getValue()); }
|
onchange(_node,_widget) {
|
||||||
|
widget.from.set_max(widget.to.getValue());
|
||||||
|
if (_node instanceof jQuery) widget.onchange.call(widget, _widget,widget);
|
||||||
|
}
|
||||||
},this);
|
},this);
|
||||||
this.select = <et2_selectbox><unknown>et2_createWidget('select',{
|
this.select = <et2_selectbox><unknown>et2_createWidget('select',{
|
||||||
id: this.id+'[relative]',
|
id: this.id+'[relative]',
|
||||||
|
Loading…
Reference in New Issue
Block a user