mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-26 02:48:51 +00:00
26 lines
398 B
JavaScript
26 lines
398 B
JavaScript
/**
|
|
* Search interface
|
|
*
|
|
* @author Pierre HUBERT
|
|
*/
|
|
|
|
ComunicWeb.components.search.interface = {
|
|
|
|
/**
|
|
* Make a global search (search for users & forms)
|
|
*
|
|
* @param {String} query The search query
|
|
* @param {Function} callback
|
|
*/
|
|
global: function(query, callback){
|
|
ComunicWeb.common.api.makeAPIrequest(
|
|
"search/global",
|
|
{
|
|
query: query
|
|
},
|
|
true,
|
|
callback
|
|
);
|
|
}
|
|
|
|
} |