forked from extern/egroupware
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',{
|
||||
id: this.id+'[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.to = <et2_date>et2_createWidget('date',{
|
||||
id: this.id+'[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.select = <et2_selectbox><unknown>et2_createWidget('select',{
|
||||
id: this.id+'[relative]',
|
||||
|
Loading…
Reference in New Issue
Block a user