mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-23 18:05:32 +00:00
- samples - fix "execute" javascript error - fix hidden exception when status template had errors - addition of 'roothome' script & template root object git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
14 lines
314 B
JavaScript
14 lines
314 B
JavaScript
// check that search term has been provided
|
|
if (args.q == undefined || args.q.length == 0)
|
|
{
|
|
status.code = 400;
|
|
status.message = "Search term has not been provided.";
|
|
status.redirect = true;
|
|
}
|
|
else
|
|
{
|
|
// perform search
|
|
var nodes = search.luceneSearch("TEXT:" + args.q);
|
|
model.resultset = nodes;
|
|
}
|