mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
If only one owner is selected, automatically change to single selection
This commit is contained in:
parent
15fb3c1d9a
commit
d9b556aee1
@ -1730,6 +1730,12 @@ app.classes.calendar = AppJS.extend(
|
||||
{
|
||||
state.state.owner[state.state.owner.indexOf(0)] = this.egw.user('account_id');
|
||||
}
|
||||
if(state.state.owner.length === 1 && this.sidebox_et2)
|
||||
{
|
||||
// If only one owner selected, go back to single select
|
||||
var owner = this.sidebox_et2.getWidgetById('owner');
|
||||
owner.set_multiple(false);
|
||||
}
|
||||
|
||||
|
||||
// Show the correct number of grids
|
||||
|
Loading…
Reference in New Issue
Block a user