mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Calendar - fix some bugs in readonly mode:
- missing participant widget would fail - read-only end date would cause error
This commit is contained in:
parent
df4f4deb1f
commit
5da12be8e8
@ -1072,7 +1072,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
if(widget)
|
if(widget)
|
||||||
{
|
{
|
||||||
var recur_end = widget.getRoot().getWidgetById('recur_enddate');
|
var recur_end = widget.getRoot().getWidgetById('recur_enddate');
|
||||||
if(recur_end && !recur_end.getValue())
|
if(recur_end && recur_end.getValue && !recur_end.getValue())
|
||||||
{
|
{
|
||||||
recur_end.set_min(widget.getValue());
|
recur_end.set_min(widget.getValue());
|
||||||
}
|
}
|
||||||
@ -1121,6 +1121,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
if(typeof widget === 'undefined') widget = input;
|
if(typeof widget === 'undefined') widget = input;
|
||||||
var content = widget.getInstanceManager().getValues(widget.getRoot());
|
var content = widget.getInstanceManager().getValues(widget.getRoot());
|
||||||
var participant = widget.getRoot().getWidgetById('participant');
|
var participant = widget.getRoot().getWidgetById('participant');
|
||||||
|
if(!participant) return;
|
||||||
|
|
||||||
participant.set_autocomplete_params({exec:{
|
participant.set_autocomplete_params({exec:{
|
||||||
start: content.start,
|
start: content.start,
|
||||||
|
Loading…
Reference in New Issue
Block a user