Commit abfd9f29 authored by Tristan Cavelier's avatar Tristan Cavelier

complex_queries.js + jio.js updated

parent 07163a47
......@@ -888,6 +888,9 @@ Object.defineProperty(scope.ComplexQueries,"query",{
////////////////////////////////////////////////////////////
result_list = [], result_list_tmp = [], j;
object_list = object_list || [];
if (query.query === undefined) {
result_list = object_list;
} else {
for (j=0; j<object_list.length; ++j) {
if ( itemMatchesQuery (
object_list[j], scope.ComplexQueries.parse (query.query)
......@@ -895,6 +898,7 @@ Object.defineProperty(scope.ComplexQueries,"query",{
result_list.push(object_list[j]);
}
}
}
if (query.filter) {
select(result_list,query.filter.select_list || []);
sort(result_list,query.filter.sort_on || []);
......
......@@ -2140,6 +2140,7 @@ var jobRules = (function () {
" putA " "
" remove " update
get get same doc, same options update
getA getA same doc, same options update
allDocs allDocs same doc, same options update
*/
......@@ -2190,6 +2191,8 @@ var jobRules = (function () {
that.addActionRule("get", "get",
[that.sameDocument, that.sameOption], that.update);
that.addActionRule("getAttachment", "getAttachment",
[that.sameDocument, that.sameOption], that.update);
that.addActionRule("allDocs", "allDocs",
[that.sameDocument, that.sameOption], that.update);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment