mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Use js type for query & select callbacks and implement setter functions
This commit is contained in:
parent
fa8963c8b4
commit
a9e37042cb
@ -512,14 +512,14 @@ var et2_link_entry = et2_inputWidget.extend(
|
||||
},
|
||||
"query": {
|
||||
"name": "Query callback",
|
||||
"type": "any",
|
||||
"default": false,
|
||||
"type": "js",
|
||||
"default": et2_no_init,
|
||||
"description": "Callback before query to server. Must return true, or false to abort query."
|
||||
},
|
||||
"select": {
|
||||
"name": "Select callback",
|
||||
"type": "any",
|
||||
"default": false,
|
||||
"type": "js",
|
||||
"default": et2_no_init,
|
||||
"description": "Callback when user selects an option. Must return true, or false to abort normal action."
|
||||
}
|
||||
},
|
||||
@ -856,6 +856,26 @@ var et2_link_entry = et2_inputWidget.extend(
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Set the query callback
|
||||
*
|
||||
* @param {function} query
|
||||
*/
|
||||
set_query: function(f)
|
||||
{
|
||||
this.options.query = f;
|
||||
},
|
||||
|
||||
/**
|
||||
* Set the select callback
|
||||
*
|
||||
* @param {function} query
|
||||
*/
|
||||
set_select: function(f)
|
||||
{
|
||||
this.options.select = f;
|
||||
},
|
||||
|
||||
/**
|
||||
* Ask server for entries matching selected app/type and filtered by search string
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user