mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
Calendar: Use ajax_owner() to find missing names instead of ajax_search(), much faster & gives the results we actually want
This commit is contained in:
parent
1b3f6ea95d
commit
3001346829
@ -57,6 +57,25 @@ export class CalendarOwner extends Et2StaticSelectMixin(Et2Select)
|
|||||||
this.searchOptions['checkgrants'] = true;
|
this.searchOptions['checkgrants'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Some [part of a] value is missing from the available options, but should be there, so find and add it.
|
||||||
|
*
|
||||||
|
* This is used when not all options are sent to the client (search, link list). Ideally we want to send
|
||||||
|
* the options for the current value, but sometimes this is not the best option so here we search or create
|
||||||
|
* the option as needed. These are not free entries, but need to match some list somewhere.
|
||||||
|
*
|
||||||
|
* @param {string} newValueElement
|
||||||
|
* @protected
|
||||||
|
*/
|
||||||
|
protected _missingOption(newValueElement : string)
|
||||||
|
{
|
||||||
|
// Call ajax_owner
|
||||||
|
return this.egw().request(this.egw().link(this.egw().ajaxUrl(this.egw().decodePath("calendar_owner_etemplate_widget::ajax_owner"))),
|
||||||
|
[newValueElement]).then((results) =>
|
||||||
|
{
|
||||||
|
return this._processResultCount(results);
|
||||||
|
});
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Override parent to show email address in options
|
* Override parent to show email address in options
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user