mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 13:03:16 +01:00
Make query callback parameters more useful (& documented) by passing the link widget instead of response
This commit is contained in:
parent
6f804b58e8
commit
cf76bf2df5
@ -522,7 +522,7 @@ var et2_link_entry = et2_inputWidget.extend(
|
||||
"name": "Query callback",
|
||||
"type": "js",
|
||||
"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": {
|
||||
"name": "Select callback",
|
||||
@ -921,7 +921,7 @@ var et2_link_entry = et2_inputWidget.extend(
|
||||
// Allow hook / tie in
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user