mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 10:27:52 +02:00
Make query callback parameters more useful (& documented) by passing the link widget instead of response
This commit is contained in:
parent
5f3f3b3e55
commit
5a4ed19e73
@ -522,7 +522,7 @@ var et2_link_entry = et2_inputWidget.extend(
|
|||||||
"name": "Query callback",
|
"name": "Query callback",
|
||||||
"type": "js",
|
"type": "js",
|
||||||
"default": et2_no_init,
|
"default": et2_no_init,
|
||||||
"description": "Callback before query to server. Must return true, or false to abort query."
|
"description": "Callback before query to server. It will be passed the request & et2_link_entry objects. Must return true, or false to abort query."
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
"name": "Select callback",
|
"name": "Select callback",
|
||||||
@ -921,7 +921,7 @@ var et2_link_entry = et2_inputWidget.extend(
|
|||||||
// Allow hook / tie in
|
// Allow hook / tie in
|
||||||
if(this.options.query && typeof this.options.query == 'function')
|
if(this.options.query && typeof this.options.query == 'function')
|
||||||
{
|
{
|
||||||
if(!this.options.query(request, response)) return false;
|
if(!this.options.query(request, this)) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((typeof request.no_cache == 'undefined' && !request.no_cache) && request.term in this.cache) {
|
if((typeof request.no_cache == 'undefined' && !request.no_cache) && request.term in this.cache) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user