mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Web Scripts:
- 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
This commit is contained in:
13
config/alfresco/bootstrap/webscripts/blogsearch.get.js
Normal file
13
config/alfresco/bootstrap/webscripts/blogsearch.get.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// 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;
|
||||
}
|
Reference in New Issue
Block a user