mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
CalendarOwner: Any free entries must be emails so validator added.
This commit is contained in:
parent
ed16ce52a2
commit
71d43b125e
@ -10,6 +10,7 @@
|
||||
|
||||
import {Et2Select} from "../../api/js/etemplate/Et2Select/Et2Select";
|
||||
import {css} from "@lion/core";
|
||||
import {IsEmail} from "../../api/js/etemplate/Validators/IsEmail";
|
||||
|
||||
/**
|
||||
* Select widget customised for calendar owner, which can be a user
|
||||
@ -37,6 +38,9 @@ export class CalendarOwner extends Et2Select
|
||||
super(...args);
|
||||
this.searchUrl = "calendar_owner_etemplate_widget::ajax_search";
|
||||
this.multiple = true;
|
||||
|
||||
// Any free entries must be email addresses
|
||||
this.defaultValidators.push(new IsEmail());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user